barreloflube commited on
Commit
e31a8e5
·
1 Parent(s): 9693dd7

chore: configure Cloudflare Pages deployment

Browse files
Files changed (2) hide show
  1. package.json +2 -1
  2. wrangler.toml +15 -0
package.json CHANGED
@@ -1,6 +1,7 @@
1
  {
2
  "name": "react-vite-ui",
3
  "private": true,
 
4
  "version": "0.0.1",
5
  "type": "module",
6
  "scripts": {
@@ -9,7 +10,7 @@
9
  "lint": "eslint .",
10
  "preview": "vite preview",
11
  "predeploy": "bun run build",
12
- "deploy": "gh-pages -d dist"
13
  },
14
  "dependencies": {
15
  "@hookform/resolvers": "^4.1.1",
 
1
  {
2
  "name": "react-vite-ui",
3
  "private": true,
4
+ "homepage": "https://sheer-8kp.pages.dev/",
5
  "version": "0.0.1",
6
  "type": "module",
7
  "scripts": {
 
10
  "lint": "eslint .",
11
  "preview": "vite preview",
12
  "predeploy": "bun run build",
13
+ "deploy": "bun run build && npx wrangler pages deploy dist"
14
  },
15
  "dependencies": {
16
  "@hookform/resolvers": "^4.1.1",
wrangler.toml ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name = "sheer"
2
+ compatibility_date = "2024-02-24"
3
+
4
+ [site]
5
+ bucket = "./dist"
6
+
7
+ [build]
8
+ command = "npm run build"
9
+ watch_dir = "src"
10
+
11
+ [env.production]
12
+ name = "sheer-production"
13
+
14
+ [env.staging]
15
+ name = "sheer-staging"