From 1c54bf0b26ad733fef6806d60ea9db2e5b516b7f Mon Sep 17 00:00:00 2001 From: Trance-0 <60459821+Trance-0@users.noreply.github.com> Date: Mon, 24 Nov 2025 16:11:57 -0600 Subject: [PATCH] backup --- content/_meta.js | 82 ------------- distribute/CSE332S/_meta.js | 119 ++++++++++++++++++ distribute/CSE347/_meta.js | 119 ++++++++++++++++++ distribute/CSE442T/_meta.js | 119 ++++++++++++++++++ distribute/CSE510/_meta.js | 119 ++++++++++++++++++ distribute/CSE5313/_meta.js | 119 ++++++++++++++++++ distribute/CSE5519/_meta.js | 119 ++++++++++++++++++ distribute/CSE559A/_meta.js | 119 ++++++++++++++++++ distribute/Math3200/_meta.js | 119 ++++++++++++++++++ distribute/Math401/_meta.js | 119 ++++++++++++++++++ distribute/Math4111/_meta.js | 119 ++++++++++++++++++ distribute/Math4121/_meta.js | 119 ++++++++++++++++++ distribute/Math416/_meta.js | 119 ++++++++++++++++++ distribute/Math4201/_meta.js | 119 ++++++++++++++++++ distribute/Math429/_meta.js | 119 ++++++++++++++++++ distribute/Swap/_meta.js | 117 ++++++++++++++++++ distribute/create_meta.py | 49 ++++++++ distribute/next.config.mjs | 43 +++++++ distribute/prebuild.sh | 59 +++++++++ docker/Jenkinsfile | 8 ++ docker/README.md | 3 + docker/_meta.js | 227 +++++++++++++++++++++++++++++++++++ docker/prebuild.sh | 10 ++ next.config.mjs | 7 -- package.json | 4 +- 25 files changed, 2185 insertions(+), 90 deletions(-) create mode 100644 distribute/CSE332S/_meta.js create mode 100644 distribute/CSE347/_meta.js create mode 100644 distribute/CSE442T/_meta.js create mode 100644 distribute/CSE510/_meta.js create mode 100644 distribute/CSE5313/_meta.js create mode 100644 distribute/CSE5519/_meta.js create mode 100644 distribute/CSE559A/_meta.js create mode 100644 distribute/Math3200/_meta.js create mode 100644 distribute/Math401/_meta.js create mode 100644 distribute/Math4111/_meta.js create mode 100644 distribute/Math4121/_meta.js create mode 100644 distribute/Math416/_meta.js create mode 100644 distribute/Math4201/_meta.js create mode 100644 distribute/Math429/_meta.js create mode 100644 distribute/Swap/_meta.js create mode 100644 distribute/create_meta.py create mode 100644 distribute/next.config.mjs create mode 100644 distribute/prebuild.sh create mode 100644 docker/README.md create mode 100644 docker/_meta.js create mode 100644 docker/prebuild.sh diff --git a/content/_meta.js b/content/_meta.js index 0dad753..de276b2 100644 --- a/content/_meta.js +++ b/content/_meta.js @@ -1,11 +1,4 @@ export default { - /** - * Do not remove the labels "Math Courses Start" - * and "Math Courses End" and "CSE Courses Start" and "CSE Courses End" - * or the separated builds will not work. - * - * WE USE THESE LABELS TO BUILD THE SEPARATED WEBSITES FOR MATH AND CSE COURSES. - */ menu: { title: 'Home', type: 'menu', @@ -24,43 +17,6 @@ export default { } }, }, - /* Load link with relative path */ - Math3200_link: { - title: 'Math3200', - type: 'page', - href: '/Math3200' - }, - Math429_link: { - title: 'Math429', - type: 'page', - href: '/Math429' - }, - Math4111_link: { - title: 'Math4111', - type: 'page', - href: '/Math4111' - }, - Math4121_link: { - title: 'Math4121', - type: 'page', - href: '/Math4121' - }, - Math4201_link: { - title: 'Math4201', - type: 'page', - href: '/Math4201' - }, - Math416_link: { - title: 'Math416', - type: 'page', - href: '/Math416' - }, - Math401_link: { - title: 'Math401', - type: 'page', - href: '/Math401' - }, - /* Math Courses Start */ Math3200: { title: 'Math3200', type: 'page', @@ -110,43 +66,6 @@ export default { timestamp: true, } }, - /* Math Courses End */ - CSE332S_link: { - title: 'CSE332S', - type: 'page', - href: '/CSE332S' - }, - CSE347_link: { - title: 'CSE347', - type: 'page', - href: '/CSE347' - }, - CSE442T_link: { - title: 'CSE442T', - type: 'page', - href: '/CSE442T' - }, - CSE5313_link: { - title: 'CSE5313', - type: 'page', - href: '/CSE5313' - }, - CSE510_link: { - title: 'CSE510', - type: 'page', - href: '/CSE510' - }, - CSE559A_link: { - title: 'CSE559A', - type: 'page', - href: '/CSE559A' - }, - CSE5519_link: { - title: 'CSE5519', - type: 'page', - href: '/CSE5519' - }, - /* CSE Courses Start */ CSE332S: { title: 'CSE332S', type: 'page', @@ -196,7 +115,6 @@ export default { timestamp: true, } }, - /* CSE Courses End */ Swap: { display: 'hidden', theme:{ diff --git a/distribute/CSE332S/_meta.js b/distribute/CSE332S/_meta.js new file mode 100644 index 0000000..6f97558 --- /dev/null +++ b/distribute/CSE332S/_meta.js @@ -0,0 +1,119 @@ +export default { + menu: { + title: 'Home', + type: 'menu', + items: { + index: { + title: 'Home', + href: '/' + }, + about: { + title: 'About', + href: '/about' + }, + contact: { + title: 'Contact Me', + href: '/contact' + } + }, + }, + Math3200_link: { + title: 'Math3200', + type: 'page', + href: '/Math3200' + }, + Math429_link: { + title: 'Math429', + type: 'page', + href: '/Math429' + }, + Math4111_link: { + title: 'Math4111', + type: 'page', + href: '/Math4111' + }, + Math4121_link: { + title: 'Math4121', + type: 'page', + href: '/Math4121' + }, + Math4201_link: { + title: 'Math4201', + type: 'page', + href: '/Math4201' + }, + Math416_link: { + title: 'Math416', + type: 'page', + href: '/Math416' + }, + Math401_link: { + title: 'Math401', + type: 'page', + href: '/Math401' + }, + CSE332S:{ + title: 'CSE332S', + type: 'page', + theme:{ + timestamp: true, + } + }, + CSE347_link: { + title: 'CSE347', + type: 'page', + href: '/CSE347' + }, + CSE442T_link: { + title: 'CSE442T', + type: 'page', + href: '/CSE442T' + }, + CSE5313_link: { + title: 'CSE5313', + type: 'page', + href: '/CSE5313' + }, + CSE510_link: { + title: 'CSE510', + type: 'page', + href: '/CSE510' + }, + CSE559A_link: { + title: 'CSE559A', + type: 'page', + href: '/CSE559A' + }, + CSE5519_link: { + title: 'CSE5519', + type: 'page', + href: '/CSE5519' + }, + Swap: { + display: 'hidden', + theme:{ + timestamp: true, + } + }, + index: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + about: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + contact: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + } + } \ No newline at end of file diff --git a/distribute/CSE347/_meta.js b/distribute/CSE347/_meta.js new file mode 100644 index 0000000..7a8c523 --- /dev/null +++ b/distribute/CSE347/_meta.js @@ -0,0 +1,119 @@ +export default { + menu: { + title: 'Home', + type: 'menu', + items: { + index: { + title: 'Home', + href: '/' + }, + about: { + title: 'About', + href: '/about' + }, + contact: { + title: 'Contact Me', + href: '/contact' + } + }, + }, + Math3200_link: { + title: 'Math3200', + type: 'page', + href: '/Math3200' + }, + Math429_link: { + title: 'Math429', + type: 'page', + href: '/Math429' + }, + Math4111_link: { + title: 'Math4111', + type: 'page', + href: '/Math4111' + }, + Math4121_link: { + title: 'Math4121', + type: 'page', + href: '/Math4121' + }, + Math4201_link: { + title: 'Math4201', + type: 'page', + href: '/Math4201' + }, + Math416_link: { + title: 'Math416', + type: 'page', + href: '/Math416' + }, + Math401_link: { + title: 'Math401', + type: 'page', + href: '/Math401' + }, + CSE332S_link: { + title: 'CSE332S', + type: 'page', + href: '/CSE332S' + }, + CSE347:{ + title: 'CSE347', + type: 'page', + theme:{ + timestamp: true, + } + }, + CSE442T_link: { + title: 'CSE442T', + type: 'page', + href: '/CSE442T' + }, + CSE5313_link: { + title: 'CSE5313', + type: 'page', + href: '/CSE5313' + }, + CSE510_link: { + title: 'CSE510', + type: 'page', + href: '/CSE510' + }, + CSE559A_link: { + title: 'CSE559A', + type: 'page', + href: '/CSE559A' + }, + CSE5519_link: { + title: 'CSE5519', + type: 'page', + href: '/CSE5519' + }, + Swap: { + display: 'hidden', + theme:{ + timestamp: true, + } + }, + index: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + about: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + contact: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + } + } \ No newline at end of file diff --git a/distribute/CSE442T/_meta.js b/distribute/CSE442T/_meta.js new file mode 100644 index 0000000..7861256 --- /dev/null +++ b/distribute/CSE442T/_meta.js @@ -0,0 +1,119 @@ +export default { + menu: { + title: 'Home', + type: 'menu', + items: { + index: { + title: 'Home', + href: '/' + }, + about: { + title: 'About', + href: '/about' + }, + contact: { + title: 'Contact Me', + href: '/contact' + } + }, + }, + Math3200_link: { + title: 'Math3200', + type: 'page', + href: '/Math3200' + }, + Math429_link: { + title: 'Math429', + type: 'page', + href: '/Math429' + }, + Math4111_link: { + title: 'Math4111', + type: 'page', + href: '/Math4111' + }, + Math4121_link: { + title: 'Math4121', + type: 'page', + href: '/Math4121' + }, + Math4201_link: { + title: 'Math4201', + type: 'page', + href: '/Math4201' + }, + Math416_link: { + title: 'Math416', + type: 'page', + href: '/Math416' + }, + Math401_link: { + title: 'Math401', + type: 'page', + href: '/Math401' + }, + CSE332S_link: { + title: 'CSE332S', + type: 'page', + href: '/CSE332S' + }, + CSE347_link: { + title: 'CSE347', + type: 'page', + href: '/CSE347' + }, + CSE442T:{ + title: 'CSE442T', + type: 'page', + theme:{ + timestamp: true, + } + }, + CSE5313_link: { + title: 'CSE5313', + type: 'page', + href: '/CSE5313' + }, + CSE510_link: { + title: 'CSE510', + type: 'page', + href: '/CSE510' + }, + CSE559A_link: { + title: 'CSE559A', + type: 'page', + href: '/CSE559A' + }, + CSE5519_link: { + title: 'CSE5519', + type: 'page', + href: '/CSE5519' + }, + Swap: { + display: 'hidden', + theme:{ + timestamp: true, + } + }, + index: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + about: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + contact: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + } + } \ No newline at end of file diff --git a/distribute/CSE510/_meta.js b/distribute/CSE510/_meta.js new file mode 100644 index 0000000..ec24ca4 --- /dev/null +++ b/distribute/CSE510/_meta.js @@ -0,0 +1,119 @@ +export default { + menu: { + title: 'Home', + type: 'menu', + items: { + index: { + title: 'Home', + href: '/' + }, + about: { + title: 'About', + href: '/about' + }, + contact: { + title: 'Contact Me', + href: '/contact' + } + }, + }, + Math3200_link: { + title: 'Math3200', + type: 'page', + href: '/Math3200' + }, + Math429_link: { + title: 'Math429', + type: 'page', + href: '/Math429' + }, + Math4111_link: { + title: 'Math4111', + type: 'page', + href: '/Math4111' + }, + Math4121_link: { + title: 'Math4121', + type: 'page', + href: '/Math4121' + }, + Math4201_link: { + title: 'Math4201', + type: 'page', + href: '/Math4201' + }, + Math416_link: { + title: 'Math416', + type: 'page', + href: '/Math416' + }, + Math401_link: { + title: 'Math401', + type: 'page', + href: '/Math401' + }, + CSE332S_link: { + title: 'CSE332S', + type: 'page', + href: '/CSE332S' + }, + CSE347_link: { + title: 'CSE347', + type: 'page', + href: '/CSE347' + }, + CSE442T_link: { + title: 'CSE442T', + type: 'page', + href: '/CSE442T' + }, + CSE5313_link: { + title: 'CSE5313', + type: 'page', + href: '/CSE5313' + }, + CSE510:{ + title: 'CSE510', + type: 'page', + theme:{ + timestamp: true, + } + }, + CSE559A_link: { + title: 'CSE559A', + type: 'page', + href: '/CSE559A' + }, + CSE5519_link: { + title: 'CSE5519', + type: 'page', + href: '/CSE5519' + }, + Swap: { + display: 'hidden', + theme:{ + timestamp: true, + } + }, + index: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + about: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + contact: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + } + } \ No newline at end of file diff --git a/distribute/CSE5313/_meta.js b/distribute/CSE5313/_meta.js new file mode 100644 index 0000000..7af78ea --- /dev/null +++ b/distribute/CSE5313/_meta.js @@ -0,0 +1,119 @@ +export default { + menu: { + title: 'Home', + type: 'menu', + items: { + index: { + title: 'Home', + href: '/' + }, + about: { + title: 'About', + href: '/about' + }, + contact: { + title: 'Contact Me', + href: '/contact' + } + }, + }, + Math3200_link: { + title: 'Math3200', + type: 'page', + href: '/Math3200' + }, + Math429_link: { + title: 'Math429', + type: 'page', + href: '/Math429' + }, + Math4111_link: { + title: 'Math4111', + type: 'page', + href: '/Math4111' + }, + Math4121_link: { + title: 'Math4121', + type: 'page', + href: '/Math4121' + }, + Math4201_link: { + title: 'Math4201', + type: 'page', + href: '/Math4201' + }, + Math416_link: { + title: 'Math416', + type: 'page', + href: '/Math416' + }, + Math401_link: { + title: 'Math401', + type: 'page', + href: '/Math401' + }, + CSE332S_link: { + title: 'CSE332S', + type: 'page', + href: '/CSE332S' + }, + CSE347_link: { + title: 'CSE347', + type: 'page', + href: '/CSE347' + }, + CSE442T_link: { + title: 'CSE442T', + type: 'page', + href: '/CSE442T' + }, + CSE5313:{ + title: 'CSE5313', + type: 'page', + theme:{ + timestamp: true, + } + }, + CSE510_link: { + title: 'CSE510', + type: 'page', + href: '/CSE510' + }, + CSE559A_link: { + title: 'CSE559A', + type: 'page', + href: '/CSE559A' + }, + CSE5519_link: { + title: 'CSE5519', + type: 'page', + href: '/CSE5519' + }, + Swap: { + display: 'hidden', + theme:{ + timestamp: true, + } + }, + index: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + about: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + contact: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + } + } \ No newline at end of file diff --git a/distribute/CSE5519/_meta.js b/distribute/CSE5519/_meta.js new file mode 100644 index 0000000..101006a --- /dev/null +++ b/distribute/CSE5519/_meta.js @@ -0,0 +1,119 @@ +export default { + menu: { + title: 'Home', + type: 'menu', + items: { + index: { + title: 'Home', + href: '/' + }, + about: { + title: 'About', + href: '/about' + }, + contact: { + title: 'Contact Me', + href: '/contact' + } + }, + }, + Math3200_link: { + title: 'Math3200', + type: 'page', + href: '/Math3200' + }, + Math429_link: { + title: 'Math429', + type: 'page', + href: '/Math429' + }, + Math4111_link: { + title: 'Math4111', + type: 'page', + href: '/Math4111' + }, + Math4121_link: { + title: 'Math4121', + type: 'page', + href: '/Math4121' + }, + Math4201_link: { + title: 'Math4201', + type: 'page', + href: '/Math4201' + }, + Math416_link: { + title: 'Math416', + type: 'page', + href: '/Math416' + }, + Math401_link: { + title: 'Math401', + type: 'page', + href: '/Math401' + }, + CSE332S_link: { + title: 'CSE332S', + type: 'page', + href: '/CSE332S' + }, + CSE347_link: { + title: 'CSE347', + type: 'page', + href: '/CSE347' + }, + CSE442T_link: { + title: 'CSE442T', + type: 'page', + href: '/CSE442T' + }, + CSE5313_link: { + title: 'CSE5313', + type: 'page', + href: '/CSE5313' + }, + CSE510_link: { + title: 'CSE510', + type: 'page', + href: '/CSE510' + }, + CSE559A_link: { + title: 'CSE559A', + type: 'page', + href: '/CSE559A' + }, + CSE5519:{ + title: 'CSE5519', + type: 'page', + theme:{ + timestamp: true, + } + }, + Swap: { + display: 'hidden', + theme:{ + timestamp: true, + } + }, + index: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + about: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + contact: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + } + } \ No newline at end of file diff --git a/distribute/CSE559A/_meta.js b/distribute/CSE559A/_meta.js new file mode 100644 index 0000000..fd7b579 --- /dev/null +++ b/distribute/CSE559A/_meta.js @@ -0,0 +1,119 @@ +export default { + menu: { + title: 'Home', + type: 'menu', + items: { + index: { + title: 'Home', + href: '/' + }, + about: { + title: 'About', + href: '/about' + }, + contact: { + title: 'Contact Me', + href: '/contact' + } + }, + }, + Math3200_link: { + title: 'Math3200', + type: 'page', + href: '/Math3200' + }, + Math429_link: { + title: 'Math429', + type: 'page', + href: '/Math429' + }, + Math4111_link: { + title: 'Math4111', + type: 'page', + href: '/Math4111' + }, + Math4121_link: { + title: 'Math4121', + type: 'page', + href: '/Math4121' + }, + Math4201_link: { + title: 'Math4201', + type: 'page', + href: '/Math4201' + }, + Math416_link: { + title: 'Math416', + type: 'page', + href: '/Math416' + }, + Math401_link: { + title: 'Math401', + type: 'page', + href: '/Math401' + }, + CSE332S_link: { + title: 'CSE332S', + type: 'page', + href: '/CSE332S' + }, + CSE347_link: { + title: 'CSE347', + type: 'page', + href: '/CSE347' + }, + CSE442T_link: { + title: 'CSE442T', + type: 'page', + href: '/CSE442T' + }, + CSE5313_link: { + title: 'CSE5313', + type: 'page', + href: '/CSE5313' + }, + CSE510_link: { + title: 'CSE510', + type: 'page', + href: '/CSE510' + }, + CSE559A:{ + title: 'CSE559A', + type: 'page', + theme:{ + timestamp: true, + } + }, + CSE5519_link: { + title: 'CSE5519', + type: 'page', + href: '/CSE5519' + }, + Swap: { + display: 'hidden', + theme:{ + timestamp: true, + } + }, + index: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + about: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + contact: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + } + } \ No newline at end of file diff --git a/distribute/Math3200/_meta.js b/distribute/Math3200/_meta.js new file mode 100644 index 0000000..42a2ed7 --- /dev/null +++ b/distribute/Math3200/_meta.js @@ -0,0 +1,119 @@ +export default { + menu: { + title: 'Home', + type: 'menu', + items: { + index: { + title: 'Home', + href: '/' + }, + about: { + title: 'About', + href: '/about' + }, + contact: { + title: 'Contact Me', + href: '/contact' + } + }, + }, + Math3200:{ + title: 'Math3200', + type: 'page', + theme:{ + timestamp: true, + } + }, + Math429_link: { + title: 'Math429', + type: 'page', + href: '/Math429' + }, + Math4111_link: { + title: 'Math4111', + type: 'page', + href: '/Math4111' + }, + Math4121_link: { + title: 'Math4121', + type: 'page', + href: '/Math4121' + }, + Math4201_link: { + title: 'Math4201', + type: 'page', + href: '/Math4201' + }, + Math416_link: { + title: 'Math416', + type: 'page', + href: '/Math416' + }, + Math401_link: { + title: 'Math401', + type: 'page', + href: '/Math401' + }, + CSE332S_link: { + title: 'CSE332S', + type: 'page', + href: '/CSE332S' + }, + CSE347_link: { + title: 'CSE347', + type: 'page', + href: '/CSE347' + }, + CSE442T_link: { + title: 'CSE442T', + type: 'page', + href: '/CSE442T' + }, + CSE5313_link: { + title: 'CSE5313', + type: 'page', + href: '/CSE5313' + }, + CSE510_link: { + title: 'CSE510', + type: 'page', + href: '/CSE510' + }, + CSE559A_link: { + title: 'CSE559A', + type: 'page', + href: '/CSE559A' + }, + CSE5519_link: { + title: 'CSE5519', + type: 'page', + href: '/CSE5519' + }, + Swap: { + display: 'hidden', + theme:{ + timestamp: true, + } + }, + index: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + about: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + contact: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + } + } \ No newline at end of file diff --git a/distribute/Math401/_meta.js b/distribute/Math401/_meta.js new file mode 100644 index 0000000..b33d555 --- /dev/null +++ b/distribute/Math401/_meta.js @@ -0,0 +1,119 @@ +export default { + menu: { + title: 'Home', + type: 'menu', + items: { + index: { + title: 'Home', + href: '/' + }, + about: { + title: 'About', + href: '/about' + }, + contact: { + title: 'Contact Me', + href: '/contact' + } + }, + }, + Math3200_link: { + title: 'Math3200', + type: 'page', + href: '/Math3200' + }, + Math429_link: { + title: 'Math429', + type: 'page', + href: '/Math429' + }, + Math4111_link: { + title: 'Math4111', + type: 'page', + href: '/Math4111' + }, + Math4121_link: { + title: 'Math4121', + type: 'page', + href: '/Math4121' + }, + Math4201_link: { + title: 'Math4201', + type: 'page', + href: '/Math4201' + }, + Math416_link: { + title: 'Math416', + type: 'page', + href: '/Math416' + }, + Math401:{ + title: 'Math401', + type: 'page', + theme:{ + timestamp: true, + } + }, + CSE332S_link: { + title: 'CSE332S', + type: 'page', + href: '/CSE332S' + }, + CSE347_link: { + title: 'CSE347', + type: 'page', + href: '/CSE347' + }, + CSE442T_link: { + title: 'CSE442T', + type: 'page', + href: '/CSE442T' + }, + CSE5313_link: { + title: 'CSE5313', + type: 'page', + href: '/CSE5313' + }, + CSE510_link: { + title: 'CSE510', + type: 'page', + href: '/CSE510' + }, + CSE559A_link: { + title: 'CSE559A', + type: 'page', + href: '/CSE559A' + }, + CSE5519_link: { + title: 'CSE5519', + type: 'page', + href: '/CSE5519' + }, + Swap: { + display: 'hidden', + theme:{ + timestamp: true, + } + }, + index: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + about: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + contact: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + } + } \ No newline at end of file diff --git a/distribute/Math4111/_meta.js b/distribute/Math4111/_meta.js new file mode 100644 index 0000000..0553395 --- /dev/null +++ b/distribute/Math4111/_meta.js @@ -0,0 +1,119 @@ +export default { + menu: { + title: 'Home', + type: 'menu', + items: { + index: { + title: 'Home', + href: '/' + }, + about: { + title: 'About', + href: '/about' + }, + contact: { + title: 'Contact Me', + href: '/contact' + } + }, + }, + Math3200_link: { + title: 'Math3200', + type: 'page', + href: '/Math3200' + }, + Math429_link: { + title: 'Math429', + type: 'page', + href: '/Math429' + }, + Math4111:{ + title: 'Math4111', + type: 'page', + theme:{ + timestamp: true, + } + }, + Math4121_link: { + title: 'Math4121', + type: 'page', + href: '/Math4121' + }, + Math4201_link: { + title: 'Math4201', + type: 'page', + href: '/Math4201' + }, + Math416_link: { + title: 'Math416', + type: 'page', + href: '/Math416' + }, + Math401_link: { + title: 'Math401', + type: 'page', + href: '/Math401' + }, + CSE332S_link: { + title: 'CSE332S', + type: 'page', + href: '/CSE332S' + }, + CSE347_link: { + title: 'CSE347', + type: 'page', + href: '/CSE347' + }, + CSE442T_link: { + title: 'CSE442T', + type: 'page', + href: '/CSE442T' + }, + CSE5313_link: { + title: 'CSE5313', + type: 'page', + href: '/CSE5313' + }, + CSE510_link: { + title: 'CSE510', + type: 'page', + href: '/CSE510' + }, + CSE559A_link: { + title: 'CSE559A', + type: 'page', + href: '/CSE559A' + }, + CSE5519_link: { + title: 'CSE5519', + type: 'page', + href: '/CSE5519' + }, + Swap: { + display: 'hidden', + theme:{ + timestamp: true, + } + }, + index: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + about: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + contact: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + } + } \ No newline at end of file diff --git a/distribute/Math4121/_meta.js b/distribute/Math4121/_meta.js new file mode 100644 index 0000000..b252259 --- /dev/null +++ b/distribute/Math4121/_meta.js @@ -0,0 +1,119 @@ +export default { + menu: { + title: 'Home', + type: 'menu', + items: { + index: { + title: 'Home', + href: '/' + }, + about: { + title: 'About', + href: '/about' + }, + contact: { + title: 'Contact Me', + href: '/contact' + } + }, + }, + Math3200_link: { + title: 'Math3200', + type: 'page', + href: '/Math3200' + }, + Math429_link: { + title: 'Math429', + type: 'page', + href: '/Math429' + }, + Math4111_link: { + title: 'Math4111', + type: 'page', + href: '/Math4111' + }, + Math4121:{ + title: 'Math4121', + type: 'page', + theme:{ + timestamp: true, + } + }, + Math4201_link: { + title: 'Math4201', + type: 'page', + href: '/Math4201' + }, + Math416_link: { + title: 'Math416', + type: 'page', + href: '/Math416' + }, + Math401_link: { + title: 'Math401', + type: 'page', + href: '/Math401' + }, + CSE332S_link: { + title: 'CSE332S', + type: 'page', + href: '/CSE332S' + }, + CSE347_link: { + title: 'CSE347', + type: 'page', + href: '/CSE347' + }, + CSE442T_link: { + title: 'CSE442T', + type: 'page', + href: '/CSE442T' + }, + CSE5313_link: { + title: 'CSE5313', + type: 'page', + href: '/CSE5313' + }, + CSE510_link: { + title: 'CSE510', + type: 'page', + href: '/CSE510' + }, + CSE559A_link: { + title: 'CSE559A', + type: 'page', + href: '/CSE559A' + }, + CSE5519_link: { + title: 'CSE5519', + type: 'page', + href: '/CSE5519' + }, + Swap: { + display: 'hidden', + theme:{ + timestamp: true, + } + }, + index: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + about: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + contact: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + } + } \ No newline at end of file diff --git a/distribute/Math416/_meta.js b/distribute/Math416/_meta.js new file mode 100644 index 0000000..e90e849 --- /dev/null +++ b/distribute/Math416/_meta.js @@ -0,0 +1,119 @@ +export default { + menu: { + title: 'Home', + type: 'menu', + items: { + index: { + title: 'Home', + href: '/' + }, + about: { + title: 'About', + href: '/about' + }, + contact: { + title: 'Contact Me', + href: '/contact' + } + }, + }, + Math3200_link: { + title: 'Math3200', + type: 'page', + href: '/Math3200' + }, + Math429_link: { + title: 'Math429', + type: 'page', + href: '/Math429' + }, + Math4111_link: { + title: 'Math4111', + type: 'page', + href: '/Math4111' + }, + Math4121_link: { + title: 'Math4121', + type: 'page', + href: '/Math4121' + }, + Math4201_link: { + title: 'Math4201', + type: 'page', + href: '/Math4201' + }, + Math416:{ + title: 'Math416', + type: 'page', + theme:{ + timestamp: true, + } + }, + Math401_link: { + title: 'Math401', + type: 'page', + href: '/Math401' + }, + CSE332S_link: { + title: 'CSE332S', + type: 'page', + href: '/CSE332S' + }, + CSE347_link: { + title: 'CSE347', + type: 'page', + href: '/CSE347' + }, + CSE442T_link: { + title: 'CSE442T', + type: 'page', + href: '/CSE442T' + }, + CSE5313_link: { + title: 'CSE5313', + type: 'page', + href: '/CSE5313' + }, + CSE510_link: { + title: 'CSE510', + type: 'page', + href: '/CSE510' + }, + CSE559A_link: { + title: 'CSE559A', + type: 'page', + href: '/CSE559A' + }, + CSE5519_link: { + title: 'CSE5519', + type: 'page', + href: '/CSE5519' + }, + Swap: { + display: 'hidden', + theme:{ + timestamp: true, + } + }, + index: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + about: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + contact: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + } + } \ No newline at end of file diff --git a/distribute/Math4201/_meta.js b/distribute/Math4201/_meta.js new file mode 100644 index 0000000..3250b42 --- /dev/null +++ b/distribute/Math4201/_meta.js @@ -0,0 +1,119 @@ +export default { + menu: { + title: 'Home', + type: 'menu', + items: { + index: { + title: 'Home', + href: '/' + }, + about: { + title: 'About', + href: '/about' + }, + contact: { + title: 'Contact Me', + href: '/contact' + } + }, + }, + Math3200_link: { + title: 'Math3200', + type: 'page', + href: '/Math3200' + }, + Math429_link: { + title: 'Math429', + type: 'page', + href: '/Math429' + }, + Math4111_link: { + title: 'Math4111', + type: 'page', + href: '/Math4111' + }, + Math4121_link: { + title: 'Math4121', + type: 'page', + href: '/Math4121' + }, + Math4201:{ + title: 'Math4201', + type: 'page', + theme:{ + timestamp: true, + } + }, + Math416_link: { + title: 'Math416', + type: 'page', + href: '/Math416' + }, + Math401_link: { + title: 'Math401', + type: 'page', + href: '/Math401' + }, + CSE332S_link: { + title: 'CSE332S', + type: 'page', + href: '/CSE332S' + }, + CSE347_link: { + title: 'CSE347', + type: 'page', + href: '/CSE347' + }, + CSE442T_link: { + title: 'CSE442T', + type: 'page', + href: '/CSE442T' + }, + CSE5313_link: { + title: 'CSE5313', + type: 'page', + href: '/CSE5313' + }, + CSE510_link: { + title: 'CSE510', + type: 'page', + href: '/CSE510' + }, + CSE559A_link: { + title: 'CSE559A', + type: 'page', + href: '/CSE559A' + }, + CSE5519_link: { + title: 'CSE5519', + type: 'page', + href: '/CSE5519' + }, + Swap: { + display: 'hidden', + theme:{ + timestamp: true, + } + }, + index: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + about: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + contact: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + } + } \ No newline at end of file diff --git a/distribute/Math429/_meta.js b/distribute/Math429/_meta.js new file mode 100644 index 0000000..5e7ffd7 --- /dev/null +++ b/distribute/Math429/_meta.js @@ -0,0 +1,119 @@ +export default { + menu: { + title: 'Home', + type: 'menu', + items: { + index: { + title: 'Home', + href: '/' + }, + about: { + title: 'About', + href: '/about' + }, + contact: { + title: 'Contact Me', + href: '/contact' + } + }, + }, + Math3200_link: { + title: 'Math3200', + type: 'page', + href: '/Math3200' + }, + Math429:{ + title: 'Math429', + type: 'page', + theme:{ + timestamp: true, + } + }, + Math4111_link: { + title: 'Math4111', + type: 'page', + href: '/Math4111' + }, + Math4121_link: { + title: 'Math4121', + type: 'page', + href: '/Math4121' + }, + Math4201_link: { + title: 'Math4201', + type: 'page', + href: '/Math4201' + }, + Math416_link: { + title: 'Math416', + type: 'page', + href: '/Math416' + }, + Math401_link: { + title: 'Math401', + type: 'page', + href: '/Math401' + }, + CSE332S_link: { + title: 'CSE332S', + type: 'page', + href: '/CSE332S' + }, + CSE347_link: { + title: 'CSE347', + type: 'page', + href: '/CSE347' + }, + CSE442T_link: { + title: 'CSE442T', + type: 'page', + href: '/CSE442T' + }, + CSE5313_link: { + title: 'CSE5313', + type: 'page', + href: '/CSE5313' + }, + CSE510_link: { + title: 'CSE510', + type: 'page', + href: '/CSE510' + }, + CSE559A_link: { + title: 'CSE559A', + type: 'page', + href: '/CSE559A' + }, + CSE5519_link: { + title: 'CSE5519', + type: 'page', + href: '/CSE5519' + }, + Swap: { + display: 'hidden', + theme:{ + timestamp: true, + } + }, + index: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + about: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + contact: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + } + } \ No newline at end of file diff --git a/distribute/Swap/_meta.js b/distribute/Swap/_meta.js new file mode 100644 index 0000000..5ea6b41 --- /dev/null +++ b/distribute/Swap/_meta.js @@ -0,0 +1,117 @@ +export default { + menu: { + title: 'Home', + type: 'menu', + items: { + index: { + title: 'Home', + href: '/' + }, + about: { + title: 'About', + href: '/about' + }, + contact: { + title: 'Contact Me', + href: '/contact' + } + }, + }, + Math3200_link: { + title: 'Math3200', + type: 'page', + href: '/Math3200' + }, + Math429_link: { + title: 'Math429', + type: 'page', + href: '/Math429' + }, + Math4111_link: { + title: 'Math4111', + type: 'page', + href: '/Math4111' + }, + Math4121_link: { + title: 'Math4121', + type: 'page', + href: '/Math4121' + }, + Math4201_link: { + title: 'Math4201', + type: 'page', + href: '/Math4201' + }, + Math416_link: { + title: 'Math416', + type: 'page', + href: '/Math416' + }, + Math401_link: { + title: 'Math401', + type: 'page', + href: '/Math401' + }, + CSE332S_link: { + title: 'CSE332S', + type: 'page', + href: '/CSE332S' + }, + CSE347_link: { + title: 'CSE347', + type: 'page', + href: '/CSE347' + }, + CSE442T_link: { + title: 'CSE442T', + type: 'page', + href: '/CSE442T' + }, + CSE5313_link: { + title: 'CSE5313', + type: 'page', + href: '/CSE5313' + }, + CSE510_link: { + title: 'CSE510', + type: 'page', + href: '/CSE510' + }, + CSE559A_link: { + title: 'CSE559A', + type: 'page', + href: '/CSE559A' + }, + CSE5519_link: { + title: 'CSE5519', + type: 'page', + href: '/CSE5519' + }, + Swap: { + display: 'hidden', + theme:{ + timestamp: true, + } + }, + index: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + about: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + contact: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + } + } \ No newline at end of file diff --git a/distribute/create_meta.py b/distribute/create_meta.py new file mode 100644 index 0000000..0f7307d --- /dev/null +++ b/distribute/create_meta.py @@ -0,0 +1,49 @@ +""" +This script is used to generate _meta.js file for microservice deployment for this project. + +We will use nginx to route traffic to different microservices. +Each microservice will have its own _meta.js file, run prebuild.sh to replace _meta.js +before building the microservice. + +This script should run when you add a new microservice (add course for your note) + +""" + +# easy python script to create meta file for each subdirectory to replace + +import os +import json +from pathlib import Path +import re + +cwd = Path(os.path.dirname(os.path.abspath(__file__))) +root_dir=Path.joinpath(cwd.parent, 'content') +# consider each subdirectory as a course +sub_dirs=os.listdir(root_dir) +# exclude .md and _meta.js +exclude_reg=r'(\.md|_meta.js)' +sub_dirs=[x for x in sub_dirs if not re.search(exclude_reg, x)] +print (sub_dirs) +meta_file = os.path.join(root_dir, '_meta.js') + +# auto generate meta files +course_match=r"(\w+\d+.*)\s*:\s*(\{\s+.+\s+.+)\s+.+\s+.+\s+.+\s+(\},)" +link_parse=r"\1_link: \2\n href: '/\1'\n \3" +link_match=r"_link\s*:\s*(\{\s+.+\s+.+)\s+.+\s+.+\s+.+\s+(\},)" +course_parse=r":\1\n theme:{\n timestamp: true,\n }\n \2" + +# copy new _meta.js +for sub_dir in sub_dirs: + sub_meta_file=os.path.join(cwd, sub_dir, '_meta.js') + full_text=Path(meta_file).read_text() + matches=re.findall(course_match, full_text) + new_text=re.sub(course_match, link_parse, full_text) + print(f'parsed link file: {new_text}') + cur_link_match=r'{}{}'.format(sub_dir,link_match) + cur_course_match=r'{}{}'.format(sub_dir,course_parse) + print(f'new reg: {cur_link_match}, {cur_course_match}') + new_text=re.sub(cur_link_match, cur_course_match, new_text) + print (f'parsed course file: {new_text}') + # create directory if not exist + Path(sub_meta_file).parent.mkdir(parents=True, exist_ok=True) + Path(sub_meta_file).write_text(new_text) diff --git a/distribute/next.config.mjs b/distribute/next.config.mjs new file mode 100644 index 0000000..1743217 --- /dev/null +++ b/distribute/next.config.mjs @@ -0,0 +1,43 @@ +import nextra from 'nextra' +import withBundleAnalyzer from '@next/bundle-analyzer' + +const withNextra = nextra({ + latex: { + renderer: 'katex', + options: { + // suppress warnings from katex for `\\` + strict: false, + } + }, + mdxOptions: { + format: 'detect' + }, + contentDirBasePath: '/' +}) + +const bundleAnalyzer = withBundleAnalyzer({ + enabled: process.env.ANALYZE === 'true' +}) + +export default bundleAnalyzer(withNextra({ + + // static export start + output: 'export', + images: { + unoptimized: true // mandatory, otherwise won't export + }, + // static export end + + // eslint: { + // ignoreDuringBuilds: true, + // }, + // compiler: { + // // enable console log in production + // removeConsole: false, + // }, + // experimental: { + // webpackMemoryOptimizations: true, + // staticGenerationMaxConcurrency: 2, // try 1–3, default is 8 + // staticGenerationMinPagesPerWorker: 1 // keep small, default is 25 + // } +})) \ No newline at end of file diff --git a/distribute/prebuild.sh b/distribute/prebuild.sh new file mode 100644 index 0000000..6bb2ac0 --- /dev/null +++ b/distribute/prebuild.sh @@ -0,0 +1,59 @@ +# This is pre-build script that cleans up resources and compiles for selected pages, then finally you may combine those subdirectories into one via nginx. +# double check you are using LF instead of CRLF + +# please run this script in project root directory + +export KEEP_PAGES="Math3200" + +# check if environment variable is set +if [ -z "$KEEP_PAGES" ]; then + echo "Please set environment variable KEEP_PAGES to the pages you want to keep for microsite building." + exit 1 +fi + +echo "Currently compiling pages: ${KEEP_PAGES}" + +# Rewrite base _meta.js and next.config.js for export pages +echo "Rewrite base _meta.js and keeping ${KEEP_PAGES}" + +cp "./distribute/${KEEP_PAGES}/_meta.js" "./content/_meta.js" + +# remove other subdirectories +for dir in ./content/*/; do + # strip the leading path and trailing slash + base_dir="$(basename "${dir%/}")" + + # check if base_dir is in KEEP_PAGES (space-separated list) + case " $KEEP_PAGES " in + *" $base_dir "*) + echo "Keeping content dir: $dir" + ;; + *) + echo "Removing content dir: $dir" + rm -rf -- "$dir" + ;; + esac +done + +# remove public directory +for dir in ./public/*/; do + base_dir="$(basename "${dir%/}")" + + case " $KEEP_PAGES " in + *" $base_dir "*) + echo "Keeping public dir: $dir" + ;; + *) + echo "Removing public dir: $dir" + rm -rf -- "$dir" + ;; + esac +done + +echo "Done clearing up resources and compiling for ${KEEP_PAGES}" + +echo "modify next.config.js" + +cp "./distribute/next.config.mjs" "./next.config.mjs" + + diff --git a/docker/Jenkinsfile b/docker/Jenkinsfile index 9de8ddc..c9567f2 100644 --- a/docker/Jenkinsfile +++ b/docker/Jenkinsfile @@ -28,6 +28,14 @@ pipeline { ]) } } + stage('Pre-build script') { + steps{ + script { + echo "Running pre-build script" + sh "./docker/prebuild.sh" + } + } + } stage("Build and test"){ parallel { stage("Build Math") { diff --git a/docker/README.md b/docker/README.md new file mode 100644 index 0000000..cdd6560 --- /dev/null +++ b/docker/README.md @@ -0,0 +1,3 @@ +# Notice + +To build via docker, run the ./prebuild.sh script before building the docker image, this script will update the meta.json file for parsing scripts in docker. \ No newline at end of file diff --git a/docker/_meta.js b/docker/_meta.js new file mode 100644 index 0000000..0dad753 --- /dev/null +++ b/docker/_meta.js @@ -0,0 +1,227 @@ +export default { + /** + * Do not remove the labels "Math Courses Start" + * and "Math Courses End" and "CSE Courses Start" and "CSE Courses End" + * or the separated builds will not work. + * + * WE USE THESE LABELS TO BUILD THE SEPARATED WEBSITES FOR MATH AND CSE COURSES. + */ + menu: { + title: 'Home', + type: 'menu', + items: { + index: { + title: 'Home', + href: '/' + }, + about: { + title: 'About', + href: '/about' + }, + contact: { + title: 'Contact Me', + href: '/contact' + } + }, + }, + /* Load link with relative path */ + Math3200_link: { + title: 'Math3200', + type: 'page', + href: '/Math3200' + }, + Math429_link: { + title: 'Math429', + type: 'page', + href: '/Math429' + }, + Math4111_link: { + title: 'Math4111', + type: 'page', + href: '/Math4111' + }, + Math4121_link: { + title: 'Math4121', + type: 'page', + href: '/Math4121' + }, + Math4201_link: { + title: 'Math4201', + type: 'page', + href: '/Math4201' + }, + Math416_link: { + title: 'Math416', + type: 'page', + href: '/Math416' + }, + Math401_link: { + title: 'Math401', + type: 'page', + href: '/Math401' + }, + /* Math Courses Start */ + Math3200: { + title: 'Math3200', + type: 'page', + theme:{ + timestamp: true, + } + }, + Math429:{ + title: 'Math429', + type: 'page', + theme:{ + timestamp: true, + } + }, + Math4111: { + title: 'Math4111', + type: 'page', + theme:{ + timestamp: true, + } + }, + Math4121: { + title: 'Math4121', + type: 'page', + theme:{ + timestamp: true, + } + }, + Math4201: { + title: 'Math4201', + type: 'page', + theme:{ + timestamp: true, + } + }, + Math416: { + title: 'Math416', + type: 'page', + theme:{ + timestamp: true, + } + }, + Math401: { + title: 'Math401', + type: 'page', + theme:{ + timestamp: true, + } + }, + /* Math Courses End */ + CSE332S_link: { + title: 'CSE332S', + type: 'page', + href: '/CSE332S' + }, + CSE347_link: { + title: 'CSE347', + type: 'page', + href: '/CSE347' + }, + CSE442T_link: { + title: 'CSE442T', + type: 'page', + href: '/CSE442T' + }, + CSE5313_link: { + title: 'CSE5313', + type: 'page', + href: '/CSE5313' + }, + CSE510_link: { + title: 'CSE510', + type: 'page', + href: '/CSE510' + }, + CSE559A_link: { + title: 'CSE559A', + type: 'page', + href: '/CSE559A' + }, + CSE5519_link: { + title: 'CSE5519', + type: 'page', + href: '/CSE5519' + }, + /* CSE Courses Start */ + CSE332S: { + title: 'CSE332S', + type: 'page', + theme:{ + timestamp: true, + } + }, + CSE347: { + title: 'CSE347', + type: 'page', + theme:{ + timestamp: true, + } + }, + CSE442T: { + title: 'CSE442T', + type: 'page', + theme:{ + timestamp: true, + } + }, + CSE5313: { + title: 'CSE5313', + type: 'page', + theme:{ + timestamp: true, + } + }, + CSE510: { + title: 'CSE510', + type: 'page', + theme:{ + timestamp: true, + } + }, + CSE559A: { + title: 'CSE559A', + type: 'page', + theme:{ + timestamp: true, + } + }, + CSE5519: { + title: 'CSE5519', + type: 'page', + theme:{ + timestamp: true, + } + }, + /* CSE Courses End */ + Swap: { + display: 'hidden', + theme:{ + timestamp: true, + } + }, + index: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + about: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + }, + contact: { + display: 'hidden', + theme:{ + sidebar: false, + timestamp: true, + } + } + } \ No newline at end of file diff --git a/docker/prebuild.sh b/docker/prebuild.sh new file mode 100644 index 0000000..6d711cb --- /dev/null +++ b/docker/prebuild.sh @@ -0,0 +1,10 @@ +# This is pre-build script that cleans up resources and compiles for selected pages, then finally you may combine those subdirectories into one via nginx. +# double check you are using LF instead of CRLF + +# please run this script in project root directory + +echo "restore docker build _meta.js file" + +cp "./docker/_meta.js" "./content/_meta.js" + + diff --git a/next.config.mjs b/next.config.mjs index 1ea75f9..2008b72 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -21,13 +21,6 @@ const bundleAnalyzer = withBundleAnalyzer({ export default bundleAnalyzer(withNextra({ output: 'standalone', - - // static export start - // output: 'export', - // images: { - // unoptimized: true // mandatory, otherwise won't export - // }, - // static export end // eslint: { // ignoreDuringBuilds: true, diff --git a/package.json b/package.json index 40b799b..78969b6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,9 @@ { "scripts": { "dev": "next --turbopack", - "build": "cross-env VERCEL_FORCE_NO_BUILD_CACHE=1 NODE_OPTIONS='--max-old-space-size=16384' next build", + "build": "cross-env NODE_OPTIONS='--max-old-space-size=16384' next build", + "build:distribute": "sh ./distribute/prebuild.sh && cross-env NODE_OPTIONS='--max-old-space-size=16384' next build", + "build:vercel": "cross-env VERCEL_FORCE_NO_BUILD_CACHE=1 NODE_OPTIONS='--max-old-space-size=16384' next build", "build:test": "cross-env ANALYZE=true NODE_OPTIONS='--inspect --max-old-space-size=4096' next build", "build:analyze": "cross-env ANALYZE=true NODE_OPTIONS='--max-old-space-size=16384' next build", "postbuild": "next-sitemap && pagefind --site .next/server/app --output-path out/_pagefind",