diff --git a/serve_frontend.py b/serve_frontend.py index 0728456..fa35f66 100644 --- a/serve_frontend.py +++ b/serve_frontend.py @@ -11,7 +11,7 @@ from flask_pyoidc.user_session import UserSession from backend import app from backend.auth import oidc_auth -fe_path = os.path.join(os.getcwd(), "frontend", "dist") +fe_path = os.path.abspath(os.path.join(app.root_path, os.pardir, "frontend", "dist")) fe_bp = Blueprint('frontend', __name__, url_prefix='/', template_folder=os.path.join(fe_path, ""))