Below you will find an example server.js
. These lines are all it takes to initialize the bootstrap and enjoy its features!
/**
* Import the base package
*/
const NextBootstrap = require('@dpdk/bootstrap');
/**
* Define a next config
*/
const nextConfig = {};
/**
* Construct a new Next.JS bootstrap
*/
const bootstrap = new NextBootstrap(__dirname, process.cwd(), nextConfig);
/**
* Initialize the bootstrap
*/
bootstrap.init();
Last modified | Friday, April 30, 2021, 12:00:21 PM UTC |
Last author | Colin van Eenige |
Commit ID | 4c7a701 |