Skip to content

Commit

Permalink
fix(elements): reconfigure elements previews next config (#16472)
Browse files Browse the repository at this point in the history
  • Loading branch information
tay1orjones authored May 17, 2024
1 parent 9fa18fd commit 3c47c9b
Show file tree
Hide file tree
Showing 18 changed files with 27 additions and 9 deletions.
2 changes: 2 additions & 0 deletions packages/colors/examples/preview/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module.exports = (phase, { defaultConfig }) => {
if (phase === PHASE_PRODUCTION_BUILD) {
return {
basePath: '/colors/examples/preview',
output: 'export',
distDir: 'build',
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/colors/examples/preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"source": "index.html",
"scripts": {
"develop": "next",
"build": "next build && next export -o build"
"build": "next build"
},
"dependencies": {
"@carbon/colors": "link:../../",
Expand Down
2 changes: 2 additions & 0 deletions packages/grid/examples/css-grid/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module.exports = (phase, { defaultConfig }) => {
if (phase === PHASE_PRODUCTION_BUILD) {
return {
basePath: '/grid/examples/css-grid',
output: 'export',
distDir: 'build',
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/grid/examples/css-grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"scripts": {
"develop": "next",
"build": "next build && next export -o build"
"build": "next build"
},
"dependencies": {
"@carbon/colors": "link:../../../colors",
Expand Down
2 changes: 2 additions & 0 deletions packages/grid/examples/preview/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module.exports = (phase, { defaultConfig }) => {
if (phase === PHASE_PRODUCTION_BUILD) {
return {
basePath: '/grid/examples/preview',
output: 'export',
distDir: 'build',
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/grid/examples/preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "Apache-2.0",
"scripts": {
"develop": "next",
"build": "next build && next export -o build"
"build": "next build"
},
"devDependencies": {
"@carbon/grid": "^11.9.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/icons/examples/preview/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module.exports = (phase, { defaultConfig }) => {
if (phase === PHASE_PRODUCTION_BUILD) {
return {
basePath: '/icons/examples/preview',
output: 'export',
distDir: 'build',
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/icons/examples/preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"scripts": {
"develop": "next",
"build": "next build && next export -o build"
"build": "next build"
},
"dependencies": {
"@carbon/styles": "link:../../../styles",
Expand Down
2 changes: 2 additions & 0 deletions packages/layout/examples/preview/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module.exports = (phase, { defaultConfig }) => {
if (phase === PHASE_PRODUCTION_BUILD) {
return {
basePath: '/layout/examples/preview',
output: 'export',
distDir: 'build',
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/layout/examples/preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "Apache-2.0",
"scripts": {
"develop": "next",
"build": "next build && next export -o build"
"build": "next build"
},
"dependencies": {
"@carbon/layout": "link:../../",
Expand Down
2 changes: 2 additions & 0 deletions packages/pictograms/examples/preview/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module.exports = (phase, { defaultConfig }) => {
if (phase === PHASE_PRODUCTION_BUILD) {
return {
basePath: '/pictograms/examples/preview',
output: 'export',
distDir: 'build',
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/pictograms/examples/preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"scripts": {
"develop": "next",
"build": "next build && next export -o build"
"build": "next build"
},
"dependencies": {
"@carbon/styles": "link:../../../styles",
Expand Down
2 changes: 2 additions & 0 deletions packages/themes/examples/preview-v10/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ module.exports = (phase, { defaultConfig }) => {
if (phase === PHASE_PRODUCTION_BUILD) {
return {
basePath: '/themes/examples/preview-v10',
output: 'export',
distDir: 'build',
};
}

Expand Down
2 changes: 1 addition & 1 deletion packages/themes/examples/preview-v10/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "Apache-2.0",
"scripts": {
"develop": "next",
"build": "next build && next export -o build"
"build": "next build"
},
"dependencies": {
"@carbon/grid": "^10.43.1",
Expand Down
2 changes: 2 additions & 0 deletions packages/themes/examples/preview/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ module.exports = (phase, { defaultConfig }) => {
if (phase === PHASE_PRODUCTION_BUILD) {
return {
basePath: '/themes/examples/preview',
output: 'export',
distDir: 'build',
};
}

Expand Down
2 changes: 1 addition & 1 deletion packages/themes/examples/preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"scripts": {
"develop": "next",
"build": "next build && next export -o build"
"build": "next build"
},
"dependencies": {
"@carbon/colors": "link:../../../colors",
Expand Down
2 changes: 2 additions & 0 deletions packages/type/examples/preview/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module.exports = (phase, { defaultConfig }) => {
if (phase === PHASE_PRODUCTION_BUILD) {
return {
basePath: '/type/examples/preview',
output: 'export',
distDir: 'build',
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/type/examples/preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"scripts": {
"develop": "next",
"build": "next build && next export -o build"
"build": "next build"
},
"dependencies": {
"@carbon/styles": "link:../../../styles",
Expand Down

0 comments on commit 3c47c9b

Please sign in to comment.