playcademy 0.14.28 → 0.14.30
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/dist/cli.d.ts +25 -0
- package/dist/cli.js +3637 -0
- package/dist/constants.d.ts +41 -5
- package/dist/constants.js +24 -3
- package/dist/db.js +1 -1997
- package/dist/index.d.ts +80 -1
- package/dist/index.js +2219 -3755
- package/dist/templates/auth/auth.ts.template +4 -4
- package/dist/templates/config/playcademy.config.js.template +1 -1
- package/dist/templates/config/playcademy.config.json.template +1 -1
- package/dist/templates/database/package.json.template +1 -1
- package/dist/utils.js +398 -2020
- package/dist/version.js +8 -1
- package/package.json +8 -1
|
@@ -27,12 +27,12 @@ export function getAuth(c: Context) {
|
|
|
27
27
|
const secret = getAuthSecret(c)
|
|
28
28
|
|
|
29
29
|
// CUSTOMIZABLE: Configure trusted origins for CORS
|
|
30
|
-
// These origins are allowed to make cross-origin requests to your
|
|
31
|
-
// Add your deployed
|
|
30
|
+
// These origins are allowed to make cross-origin requests to your app's auth endpoints.
|
|
31
|
+
// Add your deployed app URLs here when you deploy to staging or production.
|
|
32
32
|
const trustedOrigins = [
|
|
33
33
|
'http://localhost:5173', // Local development
|
|
34
|
-
// 'https://{{
|
|
35
|
-
// 'https://{{
|
|
34
|
+
// 'https://{{APP_SLUG}}-staging.playcademy.gg', // Staging deployment
|
|
35
|
+
// 'https://{{APP_SLUG}}.playcademy.gg', // Production deployment
|
|
36
36
|
]
|
|
37
37
|
|
|
38
38
|
return betterAuth({
|