Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error #4

Closed
anhao opened this issue Mar 29, 2024 · 5 comments
Closed

build error #4

anhao opened this issue Mar 29, 2024 · 5 comments

Comments

@anhao
Copy link

anhao commented Mar 29, 2024

Build error occurred
Error: Failed to collect page data for /api/webhooks/stripe
@saasfly/nextjs:build: at /workspace/saasfly/node_modules/next/dist/build/utils.js:1217:15
@saasfly/nextjs:build: at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
@saasfly/nextjs:build: type: 'Error'
@saasfly/nextjs:build: }
@saasfly/nextjs:build: Collecting page data .error: script "with-env" exited with code 1
@saasfly/nextjs:build: error: script "build" exited with code 1
@saasfly/nextjs:build: ERROR: command finished with error: command (/workspace/saasfly/apps/nextjs) /home/gitpod/.nvm/versions/node/v20.11.1/bin/bun run build exited (1)
@saasfly/nextjs#build: command (/workspace/saasfly/apps/nextjs) /home/gitpod/.nvm/versions/node/v20.11.1/bin/bun run build exited (1)

Tasks: 0 successful, 1 total
Cached: 0 cached, 1 total
Time: 30.853s
Failed: @saasfly/nextjs#build

ERROR run failed: command exited (1)
error: script "build" exited with code 1

@tianzx
Copy link
Member

tianzx commented Mar 29, 2024

can you share me your env.local file & plz ensure db is ready 🙏

@tianzx
Copy link
Member

tianzx commented Mar 29, 2024

image You should not use psql , plz use .env.local connection instead

@tianzx
Copy link
Member

tianzx commented Mar 29, 2024

And pay attention , if you can build success , plz delete your comment about POSTGRES_URL= "xxxx" , this will leak your db password 🙏

@tianzx tianzx pinned this issue Mar 29, 2024
@anhao
Copy link
Author

anhao commented Mar 29, 2024

Think , The build was successful.

@tianzx
Copy link
Member

tianzx commented Mar 29, 2024

Thank you for your interest in this project and I will close this issue. 🙏

@tianzx tianzx closed this as completed Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants