Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.68 KB

README.md

File metadata and controls

37 lines (25 loc) · 1.68 KB

This is a Next.js project bootstrapped with create-next-app and configured to run Interval as a separate process, which is our recommended method for running Interval in a Next.js project.

We do not recommend running Interval within your Next.js deployment, as Interval's requirement of a constant two-way connection with your app is incompatible with Next.js's architecture and many common Next.js deployment targets. Instead, we recommend co-locating Interval with your Next.js app to take advantage of importing and running your app's code from within your Interval actions, and deploying a production build to a separate service (e.g. Railway or Render).

Getting Started

To run the Next.js development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Running Interval

Interval runs as a separate process from the Next.js development server. You can import code from your Next project and use aliased imports just as you would do with Next.js.

To start a development server that uses nodemon to reload as you save your changes:

npm run dev:interval
# or
yarn dev:interval

To compile the Interval TypeScript files into a production-ready bundle:

npm run build:interval && npm run start:interval
# or
yarn build:interval && yarn start:interval

For more information, visit the Interval documentation.