-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for specifying the target generator config file
- Loading branch information
James M. Greene
authored and
James M. Greene
committed
Aug 5, 2022
1 parent
404d23c
commit 7c3932f
Showing
23 changed files
with
414 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| module.exports = { | ||
| siteMetadata: { | ||
| title: `My Gatsby Site`, | ||
| siteUrl: `https://www.yourdomain.tld`, | ||
| }, | ||
| plugins: [], | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| module.exports = { | ||
| pathPrefix: "/docs/", | ||
| siteMetadata: { | ||
| title: `My Gatsby Site`, | ||
| siteUrl: `https://www.yourdomain.tld`, | ||
| }, | ||
| plugins: [], | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| export default { | ||
| pathPrefix: "/docs/", | ||
| siteMetadata: { | ||
| title: `My Gatsby Site`, | ||
| siteUrl: `https://www.yourdomain.tld`, | ||
| }, | ||
| plugins: [], | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| export default { | ||
| siteMetadata: { | ||
| title: `My Gatsby Site`, | ||
| siteUrl: `https://www.yourdomain.tld`, | ||
| }, | ||
| plugins: [], | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| /** @type {import('next').NextConfig} */ | ||
| const nextConfig = { | ||
| reactStrictMode: true, | ||
| swcMinify: true, | ||
| } | ||
|
|
||
| module.exports = nextConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| /** @type {import('next').NextConfig} */ | ||
| const nextConfig = { | ||
| experimental: {images: {unoptimized: true}}, | ||
| basePath: '/docs', | ||
| reactStrictMode: true, | ||
| swcMinify: true | ||
| } | ||
|
|
||
| module.exports = nextConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| /** @type {import('next').NextConfig} */ | ||
| const nextConfig = { | ||
| experimental: {images: {unoptimized: true}}, | ||
| basePath: '/docs', | ||
| reactStrictMode: true, | ||
| swcMinify: true | ||
| } | ||
|
|
||
| export default nextConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| /** @type {import('next').NextConfig} */ | ||
| const nextConfig = { | ||
| reactStrictMode: true, | ||
| swcMinify: true, | ||
| } | ||
|
|
||
| export default nextConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| const getAllDynamicRoute = async function() { | ||
| const routes = await (async () => { | ||
| return ['/posts/hello-world', '/posts/hello-again']; | ||
| })(); | ||
| return routes; | ||
| }; | ||
|
|
||
| module.exports = { | ||
| mode: 'universal', | ||
| generate: { | ||
| async routes () { | ||
| return getAllDynamicRoute(); | ||
| } | ||
| } | ||
| }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| const getAllDynamicRoute = async function() { | ||
| const routes = await (async () => { | ||
| return ['/posts/hello-world', '/posts/hello-again']; | ||
| })(); | ||
| return routes; | ||
| }; | ||
|
|
||
| module.exports = { | ||
| target: 'static', | ||
| router: {base: '/docs/'}, | ||
| mode: 'universal', | ||
| generate: { | ||
| async routes () { | ||
| return getAllDynamicRoute(); | ||
| } | ||
| } | ||
| }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| const getAllDynamicRoute = async function() { | ||
| const routes = await (async () => { | ||
| return ['/posts/hello-world', '/posts/hello-again']; | ||
| })(); | ||
| return routes; | ||
| }; | ||
|
|
||
| export default { | ||
| target: 'static', | ||
| router: {base: '/docs/'}, | ||
| mode: 'universal', | ||
| generate: { | ||
| async routes () { | ||
| return getAllDynamicRoute(); | ||
| } | ||
| } | ||
| }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| const getAllDynamicRoute = async function() { | ||
| const routes = await (async () => { | ||
| return ['/posts/hello-world', '/posts/hello-again']; | ||
| })(); | ||
| return routes; | ||
| }; | ||
|
|
||
| export default { | ||
| mode: 'universal', | ||
| generate: { | ||
| async routes () { | ||
| return getAllDynamicRoute(); | ||
| } | ||
| } | ||
| }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| module.exports = { | ||
| // Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode | ||
| ssr: false, | ||
|
|
||
| // Global page headers: https://go.nuxtjs.dev/config-head | ||
| head: { | ||
| title: 'nuxt', | ||
| htmlAttrs: { | ||
| lang: 'en' | ||
| }, | ||
| meta: [ | ||
| { charset: 'utf-8' }, | ||
| { name: 'viewport', content: 'width=device-width, initial-scale=1' }, | ||
| { hid: 'description', name: 'description', content: '' }, | ||
| { name: 'format-detection', content: 'telephone=no' } | ||
| ], | ||
| link: [ | ||
| { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } | ||
| ] | ||
| }, | ||
|
|
||
| // Global CSS: https://go.nuxtjs.dev/config-css | ||
| css: [ | ||
| ], | ||
|
|
||
| // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins | ||
| plugins: [ | ||
| ], | ||
|
|
||
| // Auto import components: https://go.nuxtjs.dev/config-components | ||
| components: true, | ||
|
|
||
| // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules | ||
| buildModules: [ | ||
| ], | ||
|
|
||
| // Modules: https://go.nuxtjs.dev/config-modules | ||
| modules: [ | ||
| ], | ||
|
|
||
| // Build Configuration: https://go.nuxtjs.dev/config-build | ||
| build: { | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| module.exports = { | ||
| // Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode | ||
| target: 'static', | ||
| router: { base: "/docs/" }, | ||
| ssr: false, | ||
|
|
||
| // Global page headers: https://go.nuxtjs.dev/config-head | ||
| head: { | ||
| title: 'nuxt', | ||
| htmlAttrs: { | ||
| lang: 'en' | ||
| }, | ||
| meta: [ | ||
| { charset: 'utf-8' }, | ||
| { name: 'viewport', content: 'width=device-width, initial-scale=1' }, | ||
| { hid: 'description', name: 'description', content: '' }, | ||
| { name: 'format-detection', content: 'telephone=no' } | ||
| ], | ||
| link: [ | ||
| { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } | ||
| ] | ||
| }, | ||
|
|
||
| // Global CSS: https://go.nuxtjs.dev/config-css | ||
| css: [ | ||
| ], | ||
|
|
||
| // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins | ||
| plugins: [ | ||
| ], | ||
|
|
||
| // Auto import components: https://go.nuxtjs.dev/config-components | ||
| components: true, | ||
|
|
||
| // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules | ||
| buildModules: [ | ||
| ], | ||
|
|
||
| // Modules: https://go.nuxtjs.dev/config-modules | ||
| modules: [ | ||
| ], | ||
|
|
||
| // Build Configuration: https://go.nuxtjs.dev/config-build | ||
| build: { | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| export default { | ||
| // Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode | ||
| target: 'static', | ||
| router: { base: "/docs/" }, | ||
| ssr: false, | ||
|
|
||
| // Global page headers: https://go.nuxtjs.dev/config-head | ||
| head: { | ||
| title: 'nuxt', | ||
| htmlAttrs: { | ||
| lang: 'en' | ||
| }, | ||
| meta: [ | ||
| { charset: 'utf-8' }, | ||
| { name: 'viewport', content: 'width=device-width, initial-scale=1' }, | ||
| { hid: 'description', name: 'description', content: '' }, | ||
| { name: 'format-detection', content: 'telephone=no' } | ||
| ], | ||
| link: [ | ||
| { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } | ||
| ] | ||
| }, | ||
|
|
||
| // Global CSS: https://go.nuxtjs.dev/config-css | ||
| css: [ | ||
| ], | ||
|
|
||
| // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins | ||
| plugins: [ | ||
| ], | ||
|
|
||
| // Auto import components: https://go.nuxtjs.dev/config-components | ||
| components: true, | ||
|
|
||
| // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules | ||
| buildModules: [ | ||
| ], | ||
|
|
||
| // Modules: https://go.nuxtjs.dev/config-modules | ||
| modules: [ | ||
| ], | ||
|
|
||
| // Build Configuration: https://go.nuxtjs.dev/config-build | ||
| build: { | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| export default { | ||
| // Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode | ||
| ssr: false, | ||
|
|
||
| // Global page headers: https://go.nuxtjs.dev/config-head | ||
| head: { | ||
| title: 'nuxt', | ||
| htmlAttrs: { | ||
| lang: 'en' | ||
| }, | ||
| meta: [ | ||
| { charset: 'utf-8' }, | ||
| { name: 'viewport', content: 'width=device-width, initial-scale=1' }, | ||
| { hid: 'description', name: 'description', content: '' }, | ||
| { name: 'format-detection', content: 'telephone=no' } | ||
| ], | ||
| link: [ | ||
| { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } | ||
| ] | ||
| }, | ||
|
|
||
| // Global CSS: https://go.nuxtjs.dev/config-css | ||
| css: [ | ||
| ], | ||
|
|
||
| // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins | ||
| plugins: [ | ||
| ], | ||
|
|
||
| // Auto import components: https://go.nuxtjs.dev/config-components | ||
| components: true, | ||
|
|
||
| // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules | ||
| buildModules: [ | ||
| ], | ||
|
|
||
| // Modules: https://go.nuxtjs.dev/config-modules | ||
| modules: [ | ||
| ], | ||
|
|
||
| // Build Configuration: https://go.nuxtjs.dev/config-build | ||
| build: { | ||
| } | ||
| } |
Oops, something went wrong.