@donotdev/cli 0.0.34 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/cli",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "description": "Command-line interface for DoNotDev Framework",
5
5
  "type": "module",
6
6
  "private": false,
@@ -1,5 +1,4 @@
1
- {{#isNextjs}}
2
- {
1
+ {{#isNextjs}}{
3
2
  "framework": "nextjs",
4
3
  "installCommand": "bun install",{{#includeFunctions}}
5
4
  "functions": {
@@ -19,7 +18,7 @@
19
18
  "headers": [
20
19
  {
21
20
  "key": "Content-Security-Policy",
22
- "value": "default-src 'self'; script-src 'self'{{#needsAuth}} https://accounts.google.com https://apis.google.com{{/needsAuth}}{{#needsBilling}} https://js.stripe.com{{/needsBilling}}; style-src 'self' 'unsafe-inline'{{#needsBilling}} https://fonts.googleapis.com{{/needsBilling}}; img-src 'self' data: blob: https:; font-src 'self' data:{{#needsBilling}} https://fonts.gstatic.com{{/needsBilling}}; connect-src 'self'{{#needsAuth}} https://identitytoolkit.googleapis.com https://securetoken.googleapis.com https://www.googleapis.com https://*.googleapis.com https://{{firebaseProjectId}}.firebaseio.com{{/needsAuth}}{{#needsBilling}} https://api.stripe.com{{/needsBilling}}; frame-src 'none'{{#needsAuth}} https://accounts.google.com{{/needsAuth}}{{#needsBilling}} https://js.stripe.com https://hooks.stripe.com{{/needsBilling}}; object-src 'none'; base-uri 'self'; form-action 'self'; upgrade-insecure-requests"
21
+ "value": "default-src 'self'; script-src 'self'{{#isFirebase}}{{#needsAuth}} https://accounts.google.com https://apis.google.com{{/needsAuth}}{{/isFirebase}}{{#needsBilling}} https://js.stripe.com{{/needsBilling}}; style-src 'self' 'unsafe-inline'{{#needsBilling}} https://fonts.googleapis.com{{/needsBilling}}; img-src 'self' data: blob: https:; font-src 'self' data:{{#needsBilling}} https://fonts.gstatic.com{{/needsBilling}}; connect-src 'self'{{#isFirebase}}{{#needsAuth}} https://identitytoolkit.googleapis.com https://securetoken.googleapis.com https://www.googleapis.com https://*.googleapis.com https://{{firebaseProjectId}}.firebaseio.com{{/needsAuth}}{{/isFirebase}}{{#isSupabase}} https://*.supabase.co wss://*.supabase.co{{/isSupabase}}{{#needsBilling}} https://api.stripe.com{{/needsBilling}}; frame-src 'none'{{#isFirebase}}{{#needsAuth}} https://accounts.google.com{{/needsAuth}}{{/isFirebase}}{{#needsBilling}} https://js.stripe.com https://hooks.stripe.com{{/needsBilling}}; object-src 'none'; base-uri 'self'; form-action 'self'; upgrade-insecure-requests"
23
22
  },
24
23
  {
25
24
  "key": "X-Content-Type-Options",
@@ -43,6 +42,15 @@
43
42
  }
44
43
  ]
45
44
  },
45
+ {
46
+ "source": "/_next/static/:path*",
47
+ "headers": [
48
+ {
49
+ "key": "Cache-Control",
50
+ "value": "public, max-age=31536000, immutable"
51
+ }
52
+ ]
53
+ },
46
54
  {
47
55
  "source": "/assets/:path*.woff",
48
56
  "headers": [
@@ -193,17 +201,17 @@
193
201
  "env": {
194
202
  "STRIPE_SECRET_KEY": "@stripe-secret-key",
195
203
  "STRIPE_WEBHOOK_SECRET": "@stripe-webhook-secret",
196
- "STRIPE_PUBLISHABLE_KEY": "@stripe-publishable-key",
204
+ "STRIPE_PUBLISHABLE_KEY": "@stripe-publishable-key"{{#isFirebase}},
197
205
  "FIREBASE_ADMIN_PRIVATE_KEY": "@firebase-admin-private-key",
198
206
  "FIREBASE_PROJECT_ID": "@firebase-project-id",
199
- "FIREBASE_CLIENT_EMAIL": "@firebase-client-email"{{#needsOAuth}},
207
+ "FIREBASE_CLIENT_EMAIL": "@firebase-client-email"{{/isFirebase}}{{#isSupabase}},
208
+ "SUPABASE_URL": "@supabase-url",
209
+ "SUPABASE_SERVICE_ROLE_KEY": "@supabase-service-role-key"{{/isSupabase}}{{#needsOAuth}},
200
210
  "GITHUB_PERSONAL_ACCESS_TOKEN": "@github-token",
201
211
  "GITHUB_REPO_OWNER": "@github-repo-owner",
202
212
  "GITHUB_REPO_NAME": "@github-repo-name"{{/needsOAuth}}
203
213
  }{{/includeFunctions}}
204
- }
205
- {{/isNextjs}}{{^isNextjs}}
206
- {
214
+ }{{/isNextjs}}{{^isNextjs}}{
207
215
  "buildCommand": "bun run build",
208
216
  "outputDirectory": "dist",
209
217
  "installCommand": "bun install",{{#includeFunctions}}
@@ -234,7 +242,7 @@
234
242
  "headers": [
235
243
  {
236
244
  "key": "Content-Security-Policy",
237
- "value": "default-src 'self'; script-src 'self'{{#needsAuth}} https://accounts.google.com https://apis.google.com{{/needsAuth}}{{#needsBilling}} https://js.stripe.com{{/needsBilling}}; style-src 'self' 'unsafe-inline'{{#needsBilling}} https://fonts.googleapis.com{{/needsBilling}}; img-src 'self' data: blob: https:; font-src 'self' data:{{#needsBilling}} https://fonts.gstatic.com{{/needsBilling}}; connect-src 'self'{{#needsAuth}} https://identitytoolkit.googleapis.com https://securetoken.googleapis.com https://www.googleapis.com https://*.googleapis.com https://{{firebaseProjectId}}.firebaseio.com{{/needsAuth}}{{#needsBilling}} https://api.stripe.com{{/needsBilling}}; frame-src 'none'{{#needsAuth}} https://accounts.google.com{{/needsAuth}}{{#needsBilling}} https://js.stripe.com https://hooks.stripe.com{{/needsBilling}}; object-src 'none'; base-uri 'self'; form-action 'self'; upgrade-insecure-requests"
245
+ "value": "default-src 'self'; script-src 'self'{{#isFirebase}}{{#needsAuth}} https://accounts.google.com https://apis.google.com{{/needsAuth}}{{/isFirebase}}{{#needsBilling}} https://js.stripe.com{{/needsBilling}}; style-src 'self' 'unsafe-inline'{{#needsBilling}} https://fonts.googleapis.com{{/needsBilling}}; img-src 'self' data: blob: https:; font-src 'self' data:{{#needsBilling}} https://fonts.gstatic.com{{/needsBilling}}; connect-src 'self'{{#isFirebase}}{{#needsAuth}} https://identitytoolkit.googleapis.com https://securetoken.googleapis.com https://www.googleapis.com https://*.googleapis.com https://{{firebaseProjectId}}.firebaseio.com{{/needsAuth}}{{/isFirebase}}{{#isSupabase}} https://*.supabase.co wss://*.supabase.co{{/isSupabase}}{{#needsBilling}} https://api.stripe.com{{/needsBilling}}; frame-src 'none'{{#isFirebase}}{{#needsAuth}} https://accounts.google.com{{/needsAuth}}{{/isFirebase}}{{#needsBilling}} https://js.stripe.com https://hooks.stripe.com{{/needsBilling}}; object-src 'none'; base-uri 'self'; form-action 'self'; upgrade-insecure-requests"
238
246
  },
239
247
  {
240
248
  "key": "X-Content-Type-Options",
@@ -408,13 +416,14 @@
408
416
  "env": {
409
417
  "STRIPE_SECRET_KEY": "@stripe-secret-key",
410
418
  "STRIPE_WEBHOOK_SECRET": "@stripe-webhook-secret",
411
- "STRIPE_PUBLISHABLE_KEY": "@stripe-publishable-key",
419
+ "STRIPE_PUBLISHABLE_KEY": "@stripe-publishable-key"{{#isFirebase}},
412
420
  "FIREBASE_ADMIN_PRIVATE_KEY": "@firebase-admin-private-key",
413
421
  "FIREBASE_PROJECT_ID": "@firebase-project-id",
414
- "FIREBASE_CLIENT_EMAIL": "@firebase-client-email"{{#needsOAuth}},
422
+ "FIREBASE_CLIENT_EMAIL": "@firebase-client-email"{{/isFirebase}}{{#isSupabase}},
423
+ "SUPABASE_URL": "@supabase-url",
424
+ "SUPABASE_SERVICE_ROLE_KEY": "@supabase-service-role-key"{{/isSupabase}}{{#needsOAuth}},
415
425
  "GITHUB_PERSONAL_ACCESS_TOKEN": "@github-token",
416
426
  "GITHUB_REPO_OWNER": "@github-repo-owner",
417
427
  "GITHUB_REPO_NAME": "@github-repo-name"{{/needsOAuth}}
418
428
  }{{/includeFunctions}}
419
- }
420
- {{/isNextjs}}
429
+ }{{/isNextjs}}
@@ -1,11 +0,0 @@
1
- {
2
- "buildCommand": "bun run build",
3
- "outputDirectory": "dist",
4
- "installCommand": "bun install",
5
- "rewrites": [
6
- {
7
- "source": "/(.*)",
8
- "destination": "/index.html"
9
- }
10
- ]
11
- }
@@ -1,23 +0,0 @@
1
- [
2
- {
3
- "source": "/(.*)",
4
- "headers": [
5
- {
6
- "key": "Content-Security-Policy",
7
- "value": "default-src 'self'; script-src 'self' https://js.stripe.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: blob: https:; font-src 'self' data: https://fonts.gstatic.com; connect-src 'self' https://*.supabase.co wss://*.supabase.co https://api.stripe.com; frame-src 'none' https://js.stripe.com https://hooks.stripe.com; object-src 'none'; base-uri 'self'; form-action 'self'"
8
- },
9
- {
10
- "key": "X-Content-Type-Options",
11
- "value": "nosniff"
12
- },
13
- {
14
- "key": "X-Frame-Options",
15
- "value": "DENY"
16
- },
17
- {
18
- "key": "Referrer-Policy",
19
- "value": "strict-origin-when-cross-origin"
20
- }
21
- ]
22
- }
23
- ]
@@ -1,22 +0,0 @@
1
- {
2
- "buildCommand": "bun run build",
3
- "outputDirectory": "dist",
4
- "installCommand": "bun install",
5
- "rewrites": [
6
- { "source": "/(.*)", "destination": "/index.html" }
7
- ],
8
- "headers": [
9
- {
10
- "source": "/(.*)",
11
- "headers": [
12
- {
13
- "key": "Content-Security-Policy",
14
- "value": "default-src 'self'; script-src 'self' https://js.stripe.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: blob: https:; font-src 'self' data: https://fonts.gstatic.com; connect-src 'self' https://*.supabase.co wss://*.supabase.co https://api.stripe.com; frame-src 'none' https://js.stripe.com https://hooks.stripe.com; object-src 'none'; base-uri 'self'; form-action 'self'"
15
- },
16
- { "key": "X-Content-Type-Options", "value": "nosniff" },
17
- { "key": "X-Frame-Options", "value": "DENY" },
18
- { "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" }
19
- ]
20
- }
21
- ]
22
- }