Compare commits

..

No commits in common. "5a951d8c905b0797a85b295dc831f725baba5059" and "9561887e4b84babedf477cd9bf36b27c4d1bdd2d" have entirely different histories.

3 changed files with 2 additions and 28 deletions

1
.gitignore vendored
View File

@ -3,4 +3,3 @@ dist
.wrangler .wrangler
**/DS_Store **/DS_Store
DS_Store DS_Store
.DS_Store

25
Jenkinsfile vendored
View File

@ -1,25 +0,0 @@
def deploy() {
node('ubuntu') {
try {
stage('Deploy (Ubuntu)') {
checkout scm
nodejs(nodeJSInstallationName: 'Node23') {
sh 'yarn install --frozen-lockfile --production=false'
sh 'NODE_ENV=production yarn build'
// Deploy to Cloudflare Pages using wrangler
withCredentials([string(credentialsId: 'th-cloudflare-api-token', variable: 'CLOUDFLARE_API_TOKEN')]) {
sh 'yarn wrangler pages deploy dist'
}
}
}
} finally {
cleanWs()
}
}
}
deploy()

View File

@ -40,7 +40,7 @@
"build": "vite build", "build": "vite build",
"lint": "eslint .", "lint": "eslint .",
"preview": "npm run build && vite preview", "preview": "npm run build && vite preview",
"deploy": "npm run build && wrangler pages deploy ./dist --skip-caching --branch production" "deploy": "npm run build && wrangler pages deploy ./dist --skip-caching"
}, },
"eslintConfig": { "eslintConfig": {
"extends": [ "extends": [