Giter Site home page Giter Site logo

Comments (4)

twschiller avatar twschiller commented on September 27, 2024 1

Yes, that'd be great if you could try getting a basic Vercel setup. I should just create a PixieBrix Vercel account and add you?

It looks like routes has been replaced with: https://vercel.com/docs/cli#project-configuration/rewrites

from playground.

fregante avatar fregante commented on September 27, 2024 1

I'll test it on my account and then see how it goes. It'll be easier to change settings if I have full access

from playground.

twschiller avatar twschiller commented on September 27, 2024

@fregante do you happen to know if GitHub pages supports this? (Or vercel or netlify?)

If we were doing it on a webserver, each example subdirectory would have to serve up it's root index for all subresources/paths

from playground.

fregante avatar fregante commented on September 27, 2024

do you happen to know if GitHub pages supports this

Unfortunately not. If we had 1 project per repo then we can use 404.html as the entry point for the app. Unfortunately GH Pages only reads the one at the root, not /react-example/404.html for example.

Or vercel or netlify

Vercel definitely can do it if you create a Vercel project for each folder — but that would add some friction when adding more playgrounds.

I think it's still possible to publish multiple folders in one project like we're doing on GitHub Pages. Vercel can probably use routes in Vercel.json to point to the right app. I can try setting it up, if you'd like.

from playground.

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.