GithubHelp home page GithubHelp logo

Comments (5)

headwinds avatar headwinds commented on June 12, 2024 1

I did a little research and kicked the tires - I'm getting build errors on the routes so it does seem more complicated than I had thought

issues:

nextjs & express thread 1

nextjs & express thread 2

Custom Routes Solution

Zeit Doc

More great discussion...

how-to-deploy-next-js-app-with-custom-express

express & nextjs

...which has a nice example by @hvaoc http://unplggd.co which looks promising

demo

github source <-- I'll try his project

demo <-- I was able to deploy it - it just took awhile... first time it timed out but second time it deployed in about 2 minutes - not sure why it takes so long but its working

from nextjs-starter.

headwinds avatar headwinds commented on June 12, 2024

@aruzikulov I'm also interested in this upgrade - I know that the sample now.json for both NextJS and Express are a bit more complex than changing the number but not much more.... we would basically have to configure the routes.

@iaincollins mind if I take a stab at it and then open a PR for you to review?

NextJS sample

{
    "version": 2,
    "name": "nextjs",
    "builds": [
        { "src": "next.config.js", "use": "@now/next" }
    ]
}

Express sample

{
  "version": 2,
  "name": "my-express-project",
  "builds": [
    { "src": "www/**/*", "use": "@now/static" },
    { "src": "api/**/*.js", "use": "@now/node" }
  ],
  "routes": [{ "src": "/", "dest": "www/index.html" }]
}

from nextjs-starter.

iaincollins avatar iaincollins commented on June 12, 2024

Ugh thanks!

The changes that are now in Next.js 9 and the release of now.sh were why I let this stall for so long.

I hope to update with the new CSS, API route handling in Next.js, and upgrade it to now.sh 2, with additional config that allows it to also be deployed out of the box on Google Cloud Platform, AWS and AWS Edge.

from nextjs-starter.

aruzikulov avatar aruzikulov commented on June 12, 2024

perfect, can't wait to see your update :)

from nextjs-starter.

RomanShabanov avatar RomanShabanov commented on June 12, 2024

Ugh thanks!

The changes that are now in Next.js 9 and the release of now.sh were why I let this stall for so long.

I hope to update with the new CSS, API route handling in Next.js, and upgrade it to now.sh 2, with additional config that allows it to also be deployed out of the box on Google Cloud Platform, AWS and AWS Edge.

Any news?

from nextjs-starter.

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.