Teian
Teian
NNuxt
Created by Teian on 1/10/2025 in #❓・help
Files not served from public directory
there was a wrong nginx proxy setting @l422y thanks for responding though I guess this can be closed
14 replies
NNuxt
Created by Teian on 1/10/2025 in #❓・help
Files not served from public directory
holy ... I'm soooo stupid and so sorry to have bothered you
14 replies
NNuxt
Created by Teian on 1/10/2025 in #❓・help
Files not served from public directory
does it maybe have to do something with https://nuxt.com/docs/getting-started/upgrade#new-directory-structure those changes?
14 replies
NNuxt
Created by Teian on 1/10/2025 in #❓・help
Files not served from public directory
As I mentioned the files are present in the final container therefore I doubt the copy stuff
14 replies
NNuxt
Created by Teian on 1/10/2025 in #❓・help
Files not served from public directory
@L422Y does this information help I've found nothing helpful in the documentation to resolve this problem
14 replies
NNuxt
Created by Teian on 1/10/2025 in #❓・help
Files not served from public directory
did maybe something change between nuxt 3.12 and 3.15 which I overlooked?
14 replies
NNuxt
Created by Teian on 1/10/2025 in #❓・help
Files not served from public directory
# syntax=docker/dockerfile:1.4

ARG NODE_VERSION=22

FROM node:${NODE_VERSION}-alpine AS base

ENV NODE_ENV=production
ENV PORT=3000

# Build
FROM node:${NODE_VERSION} AS build

WORKDIR /src

COPY --link frontend/ .

RUN npm install
RUN npm run build

# Run
FROM base AS final

WORKDIR /app

COPY --from=build /src/.output .output

CMD [ "node", ".output/server/index.mjs" ]
# syntax=docker/dockerfile:1.4

ARG NODE_VERSION=22

FROM node:${NODE_VERSION}-alpine AS base

ENV NODE_ENV=production
ENV PORT=3000

# Build
FROM node:${NODE_VERSION} AS build

WORKDIR /src

COPY --link frontend/ .

RUN npm install
RUN npm run build

# Run
FROM base AS final

WORKDIR /app

COPY --from=build /src/.output .output

CMD [ "node", ".output/server/index.mjs" ]
14 replies
NNuxt
Created by Teian on 1/10/2025 in #❓・help
Files not served from public directory
Docker buildfile looks like this
14 replies
NNuxt
Created by Teian on 1/10/2025 in #❓・help
Files not served from public directory
hi, I'm deploying via docker. I've checked that the files are present in the docker image, which they are but when I try to load the files with a url like something.com/images/my-image.svg where the files is placed in public/images/my-image.svg i get a 404 not found
14 replies