0.8.0 • Published 2 years ago
@sociably/next v0.8.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 @sociably/webview
unless you want to serve your own web service.
Install
npm install @sociably/core @sociably/http @sociably/next
# or with yarn
yarn add @sociably/core @sociably/http @sociably/next
Docs
Check the package reference.
Setup
Assume you have the Next.js project at ../webview
, set up the module like
this:
import Sociably from '@sociably/core';
import Http from '@sociably/http';
import Next from '@sociably/next';
import nextConfigs from '../webview/next.config.js'
const DEV = process.env.NODE_ENV !== 'production';
const app = Sociably.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.9.0-alpha.8
2 years ago
0.9.0-alpha.0
2 years ago
0.9.0-alpha.3
2 years ago
0.9.0-alpha.4
2 years ago
0.9.0-alpha.7
2 years ago
0.9.0-alpha.26
2 years ago
0.8.0
2 years ago
0.8.0-alpha.28
2 years ago
0.8.0-alpha.10
2 years ago
0.8.0-alpha.31
2 years ago
0.8.0-alpha.18
2 years ago
0.8.0-alpha.8
2 years ago
0.8.0-alpha.0
3 years ago
0.8.0-alpha.1
3 years ago
0.7.5
3 years ago
0.7.1
3 years ago
0.7.0
3 years ago