API Reference / @modelence/next
Next.js integration for the Modelence framework.
Make sure you have both Modelence and the Modelence Next.js adapter installed.
Create a src/server/app.ts
file with the following contents:
Create a modelence.config.ts
file with the following contents:
Adjust your package.json
"type": "module"
to the package.json
filenext dev
to modelence dev
next build
to modelence build
build:next
(to match the postBuildCommand
you used in modelence config) and set the value to next build
Add the following lines to .gitignore
to ignore Modelence build dir and env files:
.modelence
.modelence.env
.modelence.*.env
API Reference / @modelence/next
Next.js integration for the Modelence framework.
Make sure you have both Modelence and the Modelence Next.js adapter installed.
Create a src/server/app.ts
file with the following contents:
Create a modelence.config.ts
file with the following contents:
Adjust your package.json
"type": "module"
to the package.json
filenext dev
to modelence dev
next build
to modelence build
build:next
(to match the postBuildCommand
you used in modelence config) and set the value to next build
Add the following lines to .gitignore
to ignore Modelence build dir and env files:
.modelence
.modelence.env
.modelence.*.env