mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
4b0467ed42
* Add Electron usage example * Remove the deploy part * Only allow GET request to our HTTP server * Only allow request from an electron app (checking the user agent) * Add warning about the local HTTP server * Update package.json * Update example to use Next.js v3 * Added required package.json fields with placeholders * Use next:// file protocol to open internal built files * Create next.config.js * Update set-menu.js * Update example to merge it with electron-next-skeleton ideas
15 lines
348 B
JavaScript
15 lines
348 B
JavaScript
module.exports = {
|
|
webpack (config, { dev }) {
|
|
config.target = 'electron-renderer'
|
|
return config
|
|
},
|
|
exportPathMap () {
|
|
// Let Next.js know where to find the entry page
|
|
// when it's exporting the static bundle for the use
|
|
// in the production version of your app
|
|
return {
|
|
'/start': { page: '/start' }
|
|
}
|
|
}
|
|
}
|