Skip to content

fresh install produced issue preventing frontend to start: config is not defined #59

Open
@ruurdboeke

Description

@ruurdboeke

=> => transferring context: 6.47MB 0.4s
=> CACHED [frontend 2/8] WORKDIR /app 0.0s
=> CACHED [frontend 3/8] COPY package.json package-lock.json ./ 0.0s
=> CACHED [frontend 4/8] RUN npm ci 0.0s
=> CACHED [frontend 5/8] COPY . . 0.0s
=> CACHED [frontend 6/8] RUN mkdir -p public 0.0s
=> CACHED [frontend 7/8] RUN rm -rf .next 0.0s
=> ERROR [frontend 8/8] RUN npm run build 1.8s

[frontend 8/8] RUN npm run build:
0.541
0.541 > [email protected] build
0.541 > next build
0.541
1.636 ⨯ Failed to load next.config.mjs, see more info here https://nextjs.org/docs/messages/next-config-error
1.674
1.674 > Build error occurred
1.680 ReferenceError: config is not defined
1.680 at (next.config.mjs:1:1)


failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
[92mAll services are running[0m
[94mFrontend:[0m http://localhost:3001
[94mBackend:[0m http://localhost:24125
[94mCrawl4AI:[0m http://localhost:11235
[94mLogs:[0m .\logs
[94mPress Ctrl+C to stop all services[0m
[94mMonitoring services...[0m
[91mFrontend container has stopped unexpectedly[0m
[94mShutting down services...[0m
[92mAll services stopped[0m

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions