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
[3.0 Beta] Having a data
folder in root breaks build
#5851
Comments
Added Minimal Reproduction https://github.com/maxswjeon/payload-data-folder-build-repoduce |
data
folder in root breaks build in 3.0 betadata
folder in root breaks build
This is likely a permissions issue on that particular directory. Your reproduction did not include a It appears that your mongodb data directory is being embedded inside your project instead of (typically) outside of your project. I would be curious what the permissions are for that directory. What does |
Running through reproduction steps creates a |
This information would be helpful. Either way, to be clear, this is Next.js trying to build, and you have a directory in your project that has invalid permissions. Where did you source this docker compose file? All of our examples have the following for mongo volumes: volumes:
- data:/data/db This differs from yours in that you have a relative path. |
|
The source of the docker compose file is myself. I didn't wanted to make a non-bound docker volume (located at /var/lib/docker/...) because it is hard to find them if I stop developing on the project. |
Link to reproduction
maxswjeon/payload-data-folder-build-repoduce
Describe the Bug
Having a
data
folder on the root of the folder results in build failure.To Reproduce
bash create-env.sh
to create environment variablespnpm install
docker compose up -d
pnpm build
Payload Version
3.0.0-beta.10
Adapters and Plugins
No response
The text was updated successfully, but these errors were encountered: