Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

dario-piotrowicz/next-on-pages-DO-local-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

next-on-pages DO local demo

Warning

This demo is no longer relevant and has been superseded by:
https://github.com/dario-piotrowicz/next-on-pages-stable-next-dev-test-demo

The app contains a single route that shows the usage of a durable object in local mode.

Steps to run the app

Install dependencies:

$ npm i

Then you need to run the durable object worker in a terminal (so that it can be accessed from the next/next-on-pages app):

$ cd do_worker
$ npm run dev

Then in a separate terminal run the app using next dev (with next-dev implemented using Miniflare's magic proxy):

$ cd next-app
$ npm run dev

To instead run the application using wrangler, start by building the worker:

$ cd next-app
$ npm run pages:build

(or pages:build:watch for building in watch mode) and then run:

$ npm run pages:dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published