-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from Vsion/main
feat: support pwa, add bundle-analyzer
- Loading branch information
Showing
32 changed files
with
1,380 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
############################################# | ||
############ OIDC Server Configs ############ | ||
############################################# | ||
|
||
# oidc server url, e.g. https://kubeagi.com/oidc | ||
OIDC_SERVER_URL=[oidc_server_url] | ||
|
||
# oidc server client id && secret | ||
CLIENT_ID=client_id | ||
CLIENT_SECRET=client_secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,9 @@ | |
"version": "0.1.0", | ||
"scripts": { | ||
"build": "next build", | ||
"build:analyze": "cross-env ANALYZE=true next build", | ||
"dev": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 next dev", | ||
"dev-https": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 next dev --experimental-https --experimental-https-key ./cert/key.pem --experimental-https-cert ./cert/cert.pem", | ||
"dev:https": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 next dev --experimental-https --experimental-https-key ./cert/key.pem --experimental-https-cert ./cert/cert.pem", | ||
"lint": "npm run lint:es && npm run lint:style", | ||
"lint-fix": "npm run lint-fix:es && npm run lint-fix:style", | ||
"lint-fix:es": "eslint --ext .jsx,.js,.tsx,.ts src --fix", | ||
|
@@ -13,7 +14,8 @@ | |
"lint:style": "stylelint \"{src,tests}/**/*.{css,less,js,jsx,ts,tsx}\"", | ||
"prepare": "husky install", | ||
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'", | ||
"start": "next start" | ||
"start": "next start", | ||
"start:https": "cross-env NODE_ENV=production node server.mjs" | ||
}, | ||
"lint-staged": { | ||
"*.md": [ | ||
|
@@ -60,6 +62,8 @@ | |
"ua-parser-js": "2.0.0-alpha.2" | ||
}, | ||
"devDependencies": { | ||
"@ducanh2912/next-pwa": "^10.2.2", | ||
"@next/bundle-analyzer": "^14.1.0", | ||
"@types/mdx": "^2.0.10", | ||
"@types/node": "^20", | ||
"@types/query-string": "^6.3.0", | ||
|
@@ -77,7 +81,8 @@ | |
"remark": "^15.0.1", | ||
"remark-cli": "^12.0.0", | ||
"stylelint": "^15", | ||
"typescript": "^5" | ||
"typescript": "^5", | ||
"webpack": "^5.89.0" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
|
Oops, something went wrong.