fix: use relative imports in traefik plugin to prevent double-registration; resolve PLUGIN_DIR path

This commit is contained in:
2026-03-18 18:46:02 -04:00
parent 2164ea28f2
commit 4cc83c8a19
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ def create_app(
# Run migrations (core + plugin) synchronously before event loop starts
if not testing:
from .core.migration_runner import run_migrations, get_plugin_migration_dirs
_plugin_dir = Path(app.config["PLUGIN_DIR"])
_plugin_dir = Path(app.config["PLUGIN_DIR"]).resolve()
_plugin_migration_dirs = get_plugin_migration_dirs(
_plugin_dir, app.config["PLUGINS"]
)