Add set-pages-path tests

This commit is contained in:
Yoann Chaudet
2022-07-19 11:47:29 -07:00
parent 43a5456c3f
commit ba4576e776
26 changed files with 317 additions and 168 deletions

View File

@@ -1,8 +0,0 @@
import {resolve} from 'path'
export default {
alias: {
style: resolve(__dirname, './assets/style')
},
pathPrefix: '/amazing-new-repo/' /* test */
}

View File

@@ -1,3 +0,0 @@
module.exports = {
pathPrefix: '/amazing-new-repo/'
}

View File

@@ -1,8 +0,0 @@
import {resolve} from 'path'
export default {
alias: {
style: resolve(__dirname, './assets/style')
},
basePath: '/amazing-new-repo/' /* test */
}

View File

@@ -1,3 +0,0 @@
module.exports = {
basePath: '/amazing-new-repo/' /* test */
}

View File

@@ -1 +0,0 @@
module.exports = {basePath: '/amazing-new-repo/'}

View File

@@ -1,11 +0,0 @@
import {resolve} from 'path'
export default {
alias: {
style: resolve(__dirname, './assets/style')
},
target: 'static',
router: {
base: '/amazing-new-repo/'
}
}

View File

@@ -1,9 +0,0 @@
import {resolve} from 'path'
export default {
router: {base: '/amazing-new-repo/'},
alias: {
style: resolve(__dirname, './assets/style')
},
target: 'static'
}

View File

@@ -1,9 +0,0 @@
module.exports = {
alias: {
style: resolve(__dirname, './assets/style')
},
target: 'static',
router: {
base: '/amazing-new-repo/'
}
}

View File

@@ -0,0 +1,2 @@
// Default Pages configuration for Gatsby
module.exports = { pathPrefix: "/docs/" }

View File

@@ -0,0 +1 @@
// This file is not read by the test suite

View File

@@ -0,0 +1,8 @@
module.exports = {
pathPrefix: "/docs/",
siteMetadata: {
title: `My Gatsby Site`,
siteUrl: `https://www.yourdomain.tld`,
},
plugins: [],
}

View File

@@ -0,0 +1,7 @@
module.exports = {
siteMetadata: {
title: `My Gatsby Site`,
siteUrl: `https://www.yourdomain.tld`,
},
plugins: [],
}

View File

@@ -0,0 +1,3 @@
// Default Pages configuration for Next
const nextConfig = { basePath: "/docs/" }
module.exports = nextConfig

View File

@@ -0,0 +1 @@
// This file is not read by the test suite

View File

@@ -0,0 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
basePath: "/docs/",
reactStrictMode: true,
swcMinify: true,
}
module.exports = nextConfig

View File

@@ -0,0 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
}
module.exports = nextConfig

View File

@@ -0,0 +1,45 @@
export default {
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
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: {
}
}

View File

@@ -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: {
}
}

View File

@@ -1,3 +0,0 @@
module.exports = {
pathPrefix: "hello",
};