diff --git a/main.py b/main.py index bc53ca41d..2c2ddeee5 100644 --- a/main.py +++ b/main.py @@ -79,7 +79,7 @@ async def startup_event(): @app.get('/') async def index(): return HTMLResponse( - content=open('./fcb-fronted/dist/index.html', 'r', encoding='utf-8').read() + content=open(BASE_DIR / './fcb-fronted/dist/index.html', 'r', encoding='utf-8').read() .replace('{{title}}', str(settings.name)) .replace('{{description}}', str(settings.description)) .replace('{{keywords}}', str(settings.keywords))