Skip to content

Commit 37653e4

Browse files
authored
Merge pull request #18842 from github/repo-sync
repo sync
2 parents dd0bb69 + 42fc075 commit 37653e4

File tree

5 files changed

+4063
-8741
lines changed

5 files changed

+4063
-8741
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"presets": ["next/babel"],
3-
"plugins": [["styled-components", { "ssr": true }], "@babel/plugin-syntax-top-level-await"]
3+
"plugins": ["styled-components"]
44
}

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN npm ci --no-optional --registry https://registry.npmjs.org/
2626
# For Next.js v12+
2727
# This the appropriate necessary extra for node:16-alpine
2828
# Other options are https://www.npmjs.com/search?q=%40next%2Fswc
29-
# RUN npm i @next/swc-linux-x64-musl --no-save
29+
RUN npm i @next/swc-linux-x64-musl --no-save
3030

3131

3232
# ---------------
@@ -46,8 +46,10 @@ COPY stylesheets ./stylesheets
4646
COPY pages ./pages
4747
COPY components ./components
4848
COPY lib ./lib
49-
# One part of the build relies on this content file to pull all-products
49+
# Certain content is necessary for being able to build
5050
COPY content/index.md ./content/index.md
51+
COPY content/rest ./content/rest
52+
COPY data ./data
5153

5254
COPY next.config.js ./next.config.js
5355
COPY tsconfig.json ./tsconfig.json

middleware/static-asset-caching.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ export default function setStaticAssetCaching(req, res, next) {
1111
// would make it intelligently different if its content has changed.
1212
function isChecksummed(path) {
1313
if (path.startsWith('/assets/cb-')) return true
14-
if (path.startsWith('/_next/static') && /[a-f0-9]{20}/.test(path)) return true
14+
if (path.startsWith('/_next/static') && /[a-f0-9]{16}/.test(path)) return true
1515
return false
1616
}

0 commit comments

Comments
 (0)