Comments (3)
@Snailedlt my gut tells me that this is a limitation from Vercel. If you check out their docs related to root directory, they say that you cannot access files outside the root of your app.
It looks like you are trying to go up and out of your web app root dir and into another folder within your mono repo in this file.
Could you try copying the payload config into your web app directory and adjust your imports to go to that config file to test this theory?
from payload.
@JarrodMFlesch Thanks for the response :)
they say that you cannot access files outside the root of your app.
Looks like it should have access to the files outside of the root:
I actually got an error about the file path to the config being wrong. After correcting it, it worked even though the file path is outside of the root of the app.
Could you try copying the payload config into your web app directory and adjust your imports to go to that config file to test this theory?
This is what I've done in the other repo I linked to at the bottom of the "To reproduce" section:
If you want to test the simplified non-turborepo version:
Follow all the steps from the turborepo version
fork my repo: https://github.com/Snailedlt/sveltekit-payload-frontend
If you wanna test it locally it's just cp .env.example .env, pnpm i and pnpm dev
deploy it to vercel using the default SvelteKit (v1) settings. Use the same DATABASE_URI as in the turborepo example
Go to the deployed website and notice that you get a 500 error here too. If you go to logs in vercel should see the same errors as shown in this issue.
from payload.
@AlessioGr let me know if you need anything, whether it be clarification or help testing.
from payload.
Related Issues (20)
- Doesn't show popup when adding a new document on relationship field with autosave enabled
- Performance problems with collections listview and api
- Upload collections don't use gallery view
- React Datepicker showing white background in theme dark mode.
- Email Header issue HOT 3
- Duplicate identifier 'GeneratedTypes'.ts(2300) in blank project HOT 8
- Getting error when using search plugin HOT 3
- db-postgres: `is like` filter condition does case-insensitive text search and the result is equivalent to `contains` filter
- SVG favicon not supported by Safari
- Overwriting file uploads doesn't update URL HOT 2
- req.locale incorrect for access control functions
- No additional image sizes are generated on image upload while using "imageSizes" HOT 2
- Update Unlock Documentation to Include Email Parameter
- 504 Gateway Timeout with Form Fields large data
- [UI] Document deletion modal: Content misalignment
- Relationship field is of type number | MyType
- Next.js Middleware not working in Custom Server example after build process
- Image metadata stripped from image when using upload.imageSizes
- Type signature mismatch between auth email configurations
- Fields in groups ignore typical table naming convention (postgres)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from payload.