Git Product home page Git Product logo

Comments (5)

Bulletninja avatar Bulletninja commented on May 20, 2024

I had a similar issue deploying a proyect with s3. although it was a more "manual" setup. The solution i found then had to do with 2 things:
One related to cloudfront distributions. But after deploying this project i don't see any new distributions. The other one i don't remember if the solution was s3 rules and/or editing permissions by hand (each and every "app/page" that has some kind of "slug"), but can't use that either, since it doesn't seem like we get an s3 bucket after deploying.

Edit: I documented the first solution here https://bulletninja.com/gatsby-s3-cloudfront-redirection

from jamstack-cms.

Bulletninja avatar Bulletninja commented on May 20, 2024

I also get this when visiting the admin:
Screen Shot 2020-04-07 at 22 28 09

from jamstack-cms.

Bulletninja avatar Bulletninja commented on May 20, 2024

I think i just solved it. Went to rewrites and redirects and added this:
Screen Shot 2020-04-07 at 23 04 57
Then it worked.

from jamstack-cms.

Bulletninja avatar Bulletninja commented on May 20, 2024

I know i said it works. But i meant you don't get the Access Denied message to be more precise

I don't get it, but i also don't get the article, the key here seems to be related to both redirection parameters i show in my answer above, and reach router:

<EditPage path="/editpage/:id/:title/*" />

But i'm not sure how to pass those to /editpost/index.html

from jamstack-cms.

Bulletninja avatar Bulletninja commented on May 20, 2024

After inspecting requests more closely (not saying i understand each step, because i don't). I figured there were other redirects missing. Seems to me like there are two competing behaviors, one is the file-system(-like), and the other the web behavior. There is no problem locally without the redirects. Probably gatsby develop and gatsby serve do the right thing for us, but in s3 the file-system(-like) behavior wins unless we add the redirects.
The first redirect solves part of the issue, since what we actually one is in that index.html file, but navigating gatsby pages is not just about those index.html files, but mainly about files named page-data.json. I'd love to say i know how those work, but i think i need to read this first (yes, i haven't read it :( )

What i did is added this rewrite:
Screen Shot 2020-04-12 at 23 46 28

And it finally showed things and was editable. I'm guessing other pages, like editpage, need a similar treatment.

from jamstack-cms.

Related Issues (16)

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.