0.6.0 • Published 3 years ago
@machinat/next v0.6.0
Next Module
This package is an underlying module of webview platform for serving a Next.js
web front-end. You might want to use @machinat/webview
unless you want to serve your own web service.
Install
npm install @machinat/core @machinat/http @machinat/next
# or with yarn
yarn add @machinat/core @machinat/http @machinat/next
Docs
Check the package reference.
Setup
Assume you have the Next.js project at ../webview
, set up the module like
this:
import Machinat from '@machinat/core';
import Http from '@machinat/http';
import Next from '@machinat/next';
import nextConfigs from '../webview/next.config.js'
const DEV = process.env.NODE_ENV !== 'production';
const app = Machinat.createApp({
modules: [
Http.initModule({ /* ... */ }),
Next.initModule({
entryPath: '/webview', // have to match bastPath in next configs
serverOptions: {
dev: DEV, // start with dev mode or not
dir: '../webview', // next.js app project dir
conf: nextConfigs, // imported next configs
},
}),
],
});
0.6.0
3 years ago
0.6.0-canary.0
3 years ago
0.6.0-beta.0
3 years ago
0.5.0-beta.32
3 years ago
0.5.0-beta.36
3 years ago
0.5.0-beta.14
3 years ago
0.5.0-beta.40
3 years ago
0.5.0-beta.43
3 years ago
0.5.0
3 years ago
0.5.0-beta.1
3 years ago
0.5.0-beta.0
3 years ago
0.4.1-alpha.47
3 years ago
0.4.1-alpha.34
4 years ago
0.4.1-alpha.33
4 years ago
0.4.1-alpha.29
4 years ago
0.4.1-alpha.28
4 years ago
0.4.1-alpha.8
4 years ago
0.4.1-alpha.4
4 years ago
0.4.1-alpha.3
4 years ago
0.4.1-alpha.1
4 years ago
0.4.0-beta.3
4 years ago
0.4.0-beta.1
4 years ago
0.4.0-beta.0
4 years ago
0.3.0-beta.3
4 years ago
0.3.0-beta.2
4 years ago
0.3.0-beta.1
4 years ago
0.3.0-beta.0
4 years ago
0.2.0-beta.0
4 years ago