Git Product home page Git Product logo

Comments (15)

vladejs avatar vladejs commented on August 19, 2024 4

We should be able to create a now v2 deployment by exporting every route as an independent lambda, like next.js does.

Having build/index.js entry point means a single point of failure

from sapper-template.

nonfungibletunji avatar nonfungibletunji commented on August 19, 2024 1

I am up to task, with some pointers in the right direction.

from sapper-template.

antony avatar antony commented on August 19, 2024 1

@stunjiturner yeah - now v1, it's a different beast to what now is becoming, hence the need for support. Once they deprecate v1, the app will no longer work.

from sapper-template.

antony avatar antony commented on August 19, 2024 1

@bob-bea-fre yes, but this isn't future proof. Now is moving on, and Sapper should follow it.

from sapper-template.

danielschmitz avatar danielschmitz commented on August 19, 2024 1

Hi, im building a "sapper+bulma crud"

my now v2 implementation is here: diff demo

from sapper-template.

kaleidawave avatar kaleidawave commented on August 19, 2024 1

I think until this is better documented and on v2 we should remove the now part from the documentation. It is dangerous if it uploads and exposes all working files as it could expose server secrets which lie in the sapper app

from sapper-template.

antony avatar antony commented on August 19, 2024

I've been considering this myself. I think we need to fork https://www.npmjs.com/package/@now/next in order to get it to work.

from sapper-template.

antony avatar antony commented on August 19, 2024

@stunjiturner you would be a legend.

It appears to me that the structure of a next app is very similar to a sapper app, so I would just recommend taking a copy of the next builder from https://github.com/zeit/now-builders and adjusting the way that routes are mounted (at the bottom of the launcher.js file I believe).

I am also aware that there might be a function in the 'now' cli to run a local now.sh emulator to make testing this a bit easier.

Happy to help where I can!

from sapper-template.

nonfungibletunji avatar nonfungibletunji commented on August 19, 2024

from sapper-template.

antony avatar antony commented on August 19, 2024

To be honest, I'm not sure of the exact format.

I'd recommend checking out the template and simply running npm run build to inspect.

from sapper-template.

nonfungibletunji avatar nonfungibletunji commented on August 19, 2024

I noticed that the realworld app in the svelte root repo, uses now for deployment?

from sapper-template.

rob-balfre avatar rob-balfre commented on August 19, 2024

Just add a now.json with:
{ "version": 1 }

from sapper-template.

rob-balfre avatar rob-balfre commented on August 19, 2024

Oh I totally agree @antony, was just documenting a temporary workaround.

from sapper-template.

WHenderson avatar WHenderson commented on August 19, 2024

Just wondering if anyone was working on this at the moment. I'm evaluating options so it would be great to test this out.

from sapper-template.

antony avatar antony commented on August 19, 2024

@WHenderson yeah, @thgh has done it here: sveltejs/sapper#564

I'm currently using it for a project, seems to work well!

from sapper-template.

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.