nuxt build

This commit is contained in:
Kseninia Mikhaylova 2024-05-14 17:10:27 +03:00
parent 1709fd6a2f
commit a313062caa
4 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
services:
web:
restart: always
build:
dockerfile: Dockerfile
ports:

View File

@ -1,4 +1,4 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true }
devtools: { enabled: true },
})

View File

@ -31,4 +31,4 @@ app.add_middleware(
)
app.mount("/api", api_app)
app.mount("/", StaticFiles(directory="front/dist", html=True), name="front")
app.mount("/", StaticFiles(directory="front/.output/public", html=True), name="front")

View File

@ -19,5 +19,5 @@ requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.taskipy.tasks]
build = "cd front && npm install && npm run build"
build = "cd front && npm install && npm run generate"
start = "uvicorn main:app --reload --host 0.0.0.0"