0.6.0 • Published 2 years ago

@machinat/next v0.6.0

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

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

2 years ago

0.6.0-canary.0

2 years ago

0.6.0-beta.0

2 years ago

0.5.0-beta.32

2 years ago

0.5.0-beta.36

2 years ago

0.5.0-beta.14

2 years ago

0.5.0-beta.40

2 years ago

0.5.0-beta.43

2 years ago

0.5.0

2 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

3 years ago

0.4.1-alpha.33

3 years ago

0.4.1-alpha.29

3 years ago

0.4.1-alpha.28

3 years ago

0.4.1-alpha.8

3 years ago

0.4.1-alpha.4

3 years ago

0.4.1-alpha.3

3 years ago

0.4.1-alpha.1

3 years ago

0.4.0-beta.3

3 years ago

0.4.0-beta.1

3 years ago

0.4.0-beta.0

3 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