Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ const config = {
},
env: {
productionLocale: process.env.PRODUCTION_LOCALE,
productionContentVersion: process.env.PRODUCTION_CONTENT_VERSION,
isDevelopment: process.env.IS_DEVELOPMENT
},
// For locale, if running 2 servers (JP and EN) locally, if you use build-time config
// (env instead of publicRuntimeConfig) then the config overlaps in both servers.
// So must use publicRuntimeConfig instead.
publicRuntimeConfig: {
devLocale: process.env.DEV_LOCALE,
devContentVersion: process.env.DEV_CONTENT_VERSION
devLocale: process.env.DEV_LOCALE
},
exportPathMap(defaultPathMap, { dev, outDir }) {
if (!dev) {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
"scripts": {
"jp": "IS_DEVELOPMENT=true DEV_LOCALE=jp next -p 9991",
"en": "IS_DEVELOPMENT=true DEV_LOCALE=en next -p 9990",
"jp:v2": "IS_DEVELOPMENT=true DEV_LOCALE=jp DEV_CONTENT_VERSION=v2 next -p 9992",
"jp:hide-cards": "DEV_LOCALE=jp next -p 9991",
"en:hide-cards": "DEV_LOCALE=en next -p 9990",
"dev": "rm -f report.*.json && rm -f *.log && rm -rf .next && concurrently \"yarn jp\" \"yarn jp:v2\" \"yarn en\"",
"dev": "rm -f report.*.json && rm -f *.log && rm -rf .next && concurrently \"yarn jp\" \"yarn en\"",
"dev:hide-cards": "rm -rf .next && concurrently \"yarn jp:hide-cards\" \"yarn en:hide-cards\"",
"ts-node": "tsc --project tsconfig.scripts.json && node -r module-alias/register",
"sitemap": "yarn ts-node .tsbuild/scripts/generateSitemap.js",
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/buildExpressionFromParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export default function buildExpressionFromParams(
} else if (isVariableShorthandNumberParams(expressionParams)) {
return {
...buildVariableExpression(
expressionParams.someNumber ? 'someNumber' : 'shorthandNumber',
'shorthandNumber',
true,
expressionParams.initialHighlight ? 'initialHighlighted' : 'default'
),
Expand Down
Loading