зеркало из https://github.com/github/docs.git
NextJS 12.1.6 (#26102)
* nextjs 12.1.0 * no idea what's going on * desperate attempts * wip * lots of data is necessary for 'npm run build' now * tidying up * update package lock
This commit is contained in:
Родитель
f1d0da3b17
Коммит
c1f0030e3a
2
.babelrc
2
.babelrc
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"presets": ["next/babel"],
|
||||
"plugins": [["styled-components", { "ssr": true }], "@babel/plugin-syntax-top-level-await"]
|
||||
"plugins": ["styled-components"]
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ RUN npm ci --no-optional --registry https://registry.npmjs.org/
|
|||
# For Next.js v12+
|
||||
# This the appropriate necessary extra for node:16-alpine
|
||||
# Other options are https://www.npmjs.com/search?q=%40next%2Fswc
|
||||
# RUN npm i @next/swc-linux-x64-musl --no-save
|
||||
RUN npm i @next/swc-linux-x64-musl --no-save
|
||||
|
||||
|
||||
# ---------------
|
||||
|
@ -46,8 +46,10 @@ COPY stylesheets ./stylesheets
|
|||
COPY pages ./pages
|
||||
COPY components ./components
|
||||
COPY lib ./lib
|
||||
# One part of the build relies on this content file to pull all-products
|
||||
# Certain content is necessary for being able to build
|
||||
COPY content/index.md ./content/index.md
|
||||
COPY content/rest ./content/rest
|
||||
COPY data ./data
|
||||
|
||||
COPY next.config.js ./next.config.js
|
||||
COPY tsconfig.json ./tsconfig.json
|
||||
|
|
|
@ -11,6 +11,6 @@ export default function setStaticAssetCaching(req, res, next) {
|
|||
// would make it intelligently different if its content has changed.
|
||||
function isChecksummed(path) {
|
||||
if (path.startsWith('/assets/cb-')) return true
|
||||
if (path.startsWith('/_next/static') && /[a-f0-9]{20}/.test(path)) return true
|
||||
if (path.startsWith('/_next/static') && /[a-f0-9]{16}/.test(path)) return true
|
||||
return false
|
||||
}
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -55,7 +55,7 @@
|
|||
"mdast-util-to-string": "^3.1.0",
|
||||
"morgan": "^1.10.0",
|
||||
"msgpack5rpc": "^1.1.0",
|
||||
"next": "^11.1.4",
|
||||
"next": "12.1.6",
|
||||
"overload-protection": "^1.2.3",
|
||||
"parse5": "7.0.0",
|
||||
"port-used": "^2.0.8",
|
||||
|
@ -82,6 +82,7 @@
|
|||
"slash": "^4.0.0",
|
||||
"strip-html-comments": "^1.0.0",
|
||||
"styled-components": "^5.3.5",
|
||||
"styled-jsx": "5.0.2",
|
||||
"swr": "1.3.0",
|
||||
"ts-dedent": "^2.2.0",
|
||||
"unified": "^10.1.2",
|
||||
|
|
Загрузка…
Ссылка в новой задаче