Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit e9d07e4

Browse files
Fix: self hosted version can't have their own domain
1 parent a9ca7d3 commit e9d07e4

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=0.3.10-alpha
1+
VERSION=0.3.11-alpha
22
NODE_ENV=development
33

44

apps/server/src/modules/auth/supertokens/supertokens.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const recipeList = (
3030
const isProd = process.env.NODE_ENV === 'production';
3131
const cookieSettings = isProd
3232
? {
33-
cookieDomain: '.tegon.ai',
33+
cookieDomain: process.env.SUPERTOKENS_DOMAIN,
3434
olderCookieDomain: '',
3535
cookieSecure: true,
3636
}

apps/webapp/.prod.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
NEXT_PUBLIC_VERSION=0.3.10-alpha
1+
NEXT_PUBLIC_VERSION=0.3.11-alpha
22
NEXT_PUBLIC_BASE_HOST=PROD_NEXT_PUBLIC_BASE_HOST
33
NEXT_PUBLIC_BACKEND_HOST=PROD_NEXT_PUBLIC_BACKEND_HOST
44
NEXT_PUBLIC_AI_HOST=PROD_NEXT_PUBLIC_AI_HOST

docker-compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
build:
77
context: .
88
dockerfile: ./apps/webapp/Dockerfile
9-
image: tegonhq/tegon-webapp:0.3.10-alpha
9+
image: tegonhq/tegon-webapp:0.3.11-alpha
1010
restart: always
1111
ports:
1212
- 3000:3000
@@ -18,7 +18,7 @@ services:
1818
build:
1919
context: .
2020
dockerfile: ./apps/server/Dockerfile
21-
image: tegonhq/tegon-server:0.3.10-alpha
21+
image: tegonhq/tegon-server:0.3.11-alpha
2222
restart: always
2323
ports:
2424
- 3001:3001

turbo.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"REPLICATION_DATABASE_URL",
1717
"SYNC_SERVER",
1818
"SUPERTOKEN_CONNECTION_URI",
19+
"SUPERTOKENS_DOMAIN",
1920
"SENTRY_DSN",
2021
"REDIS_URL",
2122
"REDIS_PORT",

0 commit comments

Comments
 (0)