diff --git a/packages/backend/.env.example b/packages/backend/.env.example index 2e28ed5..c1ab18f 100644 --- a/packages/backend/.env.example +++ b/packages/backend/.env.example @@ -6,8 +6,8 @@ CORS_ORIGIN=http://localhost:1420 # openssl rand -base64 32 JWT_SECRET=jwt_secret_here -S3_PUBLIC_URL=https://issuebucket.ob248.com -S3_ENDPOINT=https://account_id.r2.cloudflarestorage.com/issue +S3_PUBLIC_URL=https://images.sprintpm.org +S3_ENDPOINT=https://account_id.r2.cloudflarestorage.com/sprint S3_ACCESS_KEY_ID=your_access_key_id S3_SECRET_ACCESS_KEY=your_secret_access_key S3_BUCKET_NAME=issue @@ -16,4 +16,4 @@ STRIPE_PUBLISHABLE_KEY=your_stripe_publishable_key STRIPE_SECRET_KEY=your_stripe_secret_key RESEND_API_KEY=re_xxxxxxxxxxxxxxxx -EMAIL_FROM=Sprint \ No newline at end of file +EMAIL_FROM=Sprint \ No newline at end of file diff --git a/packages/frontend/src/components/server-configuration.tsx b/packages/frontend/src/components/server-configuration.tsx index 779730b..4e0a085 100644 --- a/packages/frontend/src/components/server-configuration.tsx +++ b/packages/frontend/src/components/server-configuration.tsx @@ -7,7 +7,7 @@ import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { getServerURL } from "@/lib/utils"; -const DEFAULT_URL = "https://tnirps.ob248.com"; +const DEFAULT_URL = "https://server.sprintpm.org"; const formatURL = (url: string) => { if (url.endsWith("/")) { diff --git a/packages/frontend/src/lib/utils.ts b/packages/frontend/src/lib/utils.ts index 600cf20..58ebdb9 100644 --- a/packages/frontend/src/lib/utils.ts +++ b/packages/frontend/src/lib/utils.ts @@ -37,7 +37,7 @@ export function getServerURL() { let serverURL = localStorage.getItem("serverURL") || // user-defined server URL ENV_SERVER_URL || // environment variable - "https://tnirps.ob248.com"; // fallback + "https://server.sprintpm.org"; // fallback if (serverURL.endsWith("/")) { serverURL = serverURL.slice(0, -1); } diff --git a/packages/frontend/vite.config.ts b/packages/frontend/vite.config.ts index cf2cd86..48a6436 100644 --- a/packages/frontend/vite.config.ts +++ b/packages/frontend/vite.config.ts @@ -22,7 +22,7 @@ export default defineConfig(async () => ({ server: { port: 1420, strictPort: true, - allowedHosts: ["sprint.ob248.com"], + allowedHosts: ["sprint.ob248.com", "sprintpm.org"], host: host || false, hmr: host ? {