Skip to content

[BUG] Local serving doesn't work #70

@LevYas

Description

@LevYas

Describe The Bug

I was unable to run the project locally in production mode. The Development mode works fine.

To Reproduce

From the clean state, execute "yarn install" and "yarn build".
As per instructions, try to run yarn start. That will produce the error:

"next start" does not work with "output: standalone" configuration. Use "node .next/standalone/server.js" instead.

Ok, se node .next/standalone/server.js. Output (I'm on Windows):

PS D:_My\excalith-start-page> node .next/standalone/server.js
▲ Next.js 14.0.4

This time the server starts, but the page doesn't load - can't find files. Console errors:

Uncaught (in promise) TypeError: Cannot destructure property 'country' of '(intermediate value)' as it is null.
GET http://localhost:3000/_next/static/css/dec7afba07758c41.css net::ERR_ABORTED 404 (Not Found) localhost/:1
GET http://localhost:3000/_next/static/css/607fb85db1ac148f.css net::ERR_ABORTED 404 (Not Found) localhost/:1
GET http://localhost:3000/_next/static/chunks/webpack-4461f78ae6345ca1.js net::ERR_ABORTED 404 (Not Found) localhost/:1
GET http://localhost:3000/_next/static/chunks/main-359cf9259ad67a06.js net::ERR_ABORTED 404 (Not Found) localhost/:1
GET http://localhost:3000/_next/static/chunks/framework-5429a50ba5373c56.js net::ERR_ABORTED 404 (Not Found) localhost/:1
GET http://localhost:3000/_next/static/chunks/pages/_app-f1f6d5684b7c625b.js net::ERR_ABORTED 404 (Not Found) localhost/:1
GET http://localhost:3000/_next/static/chunks/75fc9c18-af385d3bdb0a9ad1.js net::ERR_ABORTED 404 (Not Found) localhost/:1
GET http://localhost:3000/_next/static/chunks/152-39dfe41610587be7.js net::ERR_ABORTED 404 (Not Found) localhost/:1
GET http://localhost:3000/_next/static/chunks/pages/index-0cd460355d554a27.js net::ERR_ABORTED 404 (Not Found) localhost/:1
GET http://localhost:3000/_next/static/w3McG0lBB0i8_KK6uZMy_/_buildManifest.js net::ERR_ABORTED 404 (Not Found) localhost/:1
GET http://localhost:3000/_next/static/w3McG0lBB0i8_KK6uZMy_/_ssgManifest.js net::ERR_ABORTED 404 (Not Found) localhost/:1
GET http://localhost:3000/favicon.ico 404 (Not Found) favicon.ico:1

What can we do to fix things?

Specs

  • OS: Windows 11
  • Browser Brave latest
  • NodeJs - latest

Additional Context

Ideally, I want to run the page as Chevron does in Hosted mode. First, I wanted to run the app via node, and then I wanted to add a script to register it as a service.
I don't know much about frontend development, but hoped it could work that way, without additional software or running docker.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions