Coder Social home page Coder Social logo

Comments (3)

JarrodMFlesch avatar JarrodMFlesch commented on June 27, 2024

@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.

Snailedlt avatar Snailedlt commented on June 27, 2024

@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:
image
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.

Snailedlt avatar Snailedlt commented on June 27, 2024

@AlessioGr let me know if you need anything, whether it be clarification or help testing.

from payload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.