feat(sites): add saas sites env (#1370)

This commit is contained in:
gimmyhehe 2024-02-04 14:21:08 +08:00 committed by GitHub
parent e848314b4b
commit a2d101bfeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 21 additions and 1 deletions

9
examples/sites/env/.env.saasopen vendored Normal file
View File

@ -0,0 +1,9 @@
# 1、声明一个变量
VITE_CONTEXT=/tiny-vue-saas/
VITE_BUILD_TARGET='open'
VITE_TINY_THEME='saas'
# 官网应用类型pc / mobile / mobile-first
VITE_APP_MODE='pc'
VITE_APP_BUILD_BASE_URL=https://res.hc-cdn.com/tiny-vue-saas/${staticReleaseVersion}/
VITE_PLAYGROUND_URL=/vue-saas-playground

9
examples/sites/env/.env.saasprod vendored Normal file
View File

@ -0,0 +1,9 @@
# 1、声明一个变量
VITE_CONTEXT=/tiny-vue-saas/
VITE_BUILD_TARGET='inner'
VITE_TINY_THEME='saas'
# 官网应用类型pc / mobile / mobile-first
VITE_APP_MODE='pc'
VITE_APP_BUILD_BASE_URL=https://res.hc-cdn.com/tiny-vue-saas/${staticReleaseVersion}/
VITE_PLAYGROUND_URL=/vue-saas-playground

View File

@ -10,8 +10,10 @@
"build:inner:alpha": "vite build --mode inneralpha", "build:inner:alpha": "vite build --mode inneralpha",
"build:mobile:alpha": "vite build --mode mobilealpha", "build:mobile:alpha": "vite build --mode mobilealpha",
"build:mobile:prod": "vite build --mode mobileprod", "build:mobile:prod": "vite build --mode mobileprod",
"build:inner:saas": "vite build --mode innersaas",
"build:inner:prod": "vite build --mode innerprod", "build:inner:prod": "vite build --mode innerprod",
"build:saas:alpha": "vite build --mode innersaas",
"build:saas:open": "vite build --mode saasopen",
"build:saas:prod": "vite build --mode saasprod",
"build": "vite build", "build": "vite build",
"build:open": "vite build --mode open", "build:open": "vite build --mode open",
"prettier": "npx prettier --write ./**/*.{ts,tsx,css,less,scss,vue}", "prettier": "npx prettier --write ./**/*.{ts,tsx,css,less,scss,vue}",