diff --git a/.changeset/admin-web-env.md b/.changeset/admin-web-env.md new file mode 100644 index 000000000..1a86b6f73 --- /dev/null +++ b/.changeset/admin-web-env.md @@ -0,0 +1,5 @@ +--- +'admin-web': patch +--- + +edit .env for admin-web diff --git a/apps/admin-web/.env b/apps/admin-web/.env index d91fa43bd..6225607a5 100644 --- a/apps/admin-web/.env +++ b/apps/admin-web/.env @@ -2,10 +2,10 @@ NEXT_PUBLIC_ENVIRONMENT=local # Backend -NEXT_PUBLIC_BACKEND_URL_BASE=http://localhost:3333 +NEXT_PUBLIC_BACKEND_URL_BASE=http://localhost:3333/_api # GraphQL -NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL_BASE}/_api/graphql +NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL_BASE}/graphql # Sitemap (Frontend URL) NEXT_PUBLIC_SITE_URL=http://localhost:4201 @@ -20,4 +20,4 @@ NEXT_PUBLIC_CLIENT_ID=2f3a5527c10a61c0489d75825011c69f59743981 NEXT_PUBLIC_REDIRECT_URI=${NEXT_PUBLIC_SITE_URL}/generateToken # Auth URL of backend -NEXT_PUBLIC_AUTH_URL=${NEXT_PUBLIC_BACKEND_URL}/_api/auth +NEXT_PUBLIC_AUTH_URL=${NEXT_PUBLIC_BACKEND_URL_BASE}/auth diff --git a/apps/admin-web/.env.beta b/apps/admin-web/.env.beta index e5d7a8166..a8b6dba4e 100644 --- a/apps/admin-web/.env.beta +++ b/apps/admin-web/.env.beta @@ -2,13 +2,13 @@ NEXT_PUBLIC_ENVIRONMENT=beta # Backend -NEXT_PUBLIC_BACKEND_URL=http://localhost:3333 +NEXT_PUBLIC_BACKEND_URL_BASE=https://beta-admin.internal.cugetreg.com/_api # GraphQL -NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL}/_api/graphql +NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL_BASE}/graphql # Sitemap (Frontend URL) -NEXT_PUBLIC_SITE_URL=http://localhost:4200 +NEXT_PUBLIC_SITE_URL=https://beta-admin.internal.cugetreg.com # OAuth url NEXT_PUBLIC_AUTHORIZE_URL=https://auth.internal.cugetreg.com/application/o/authorize/ @@ -20,4 +20,4 @@ NEXT_PUBLIC_CLIENT_ID=2f3a5527c10a61c0489d75825011c69f59743981 NEXT_PUBLIC_REDIRECT_URI=${NEXT_PUBLIC_SITE_URL}/generateToken # Auth URL of backend -NEXT_PUBLIC_AUTH_URL=${NEXT_PUBLIC_BACKEND_URL}/_api/auth +NEXT_PUBLIC_AUTH_URL=${NEXT_PUBLIC_BACKEND_URL_BASE}/auth diff --git a/apps/admin-web/.env.dev b/apps/admin-web/.env.dev index 329091885..6f4461782 100644 --- a/apps/admin-web/.env.dev +++ b/apps/admin-web/.env.dev @@ -2,13 +2,13 @@ NEXT_PUBLIC_ENVIRONMENT=dev # Backend -NEXT_PUBLIC_BACKEND_URL=http://localhost:3333 +NEXT_PUBLIC_BACKEND_URL_BASE=https://dev-admin.internal.cugetreg.com/_api # GraphQL -NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL}/_api/graphql +NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL_BASE}/graphql # Sitemap (Frontend URL) -NEXT_PUBLIC_SITE_URL=http://localhost:4200 +NEXT_PUBLIC_SITE_URL=https://dev-admin.internal.cugetreg.com # OAuth url NEXT_PUBLIC_AUTHORIZE_URL=https://auth.internal.cugetreg.com/application/o/authorize/ @@ -20,4 +20,4 @@ NEXT_PUBLIC_CLIENT_ID=2f3a5527c10a61c0489d75825011c69f59743981 NEXT_PUBLIC_REDIRECT_URI=${NEXT_PUBLIC_SITE_URL}/generateToken # Auth URL of backend -NEXT_PUBLIC_AUTH_URL=${NEXT_PUBLIC_BACKEND_URL}/_api/auth +NEXT_PUBLIC_AUTH_URL=${NEXT_PUBLIC_BACKEND_URL_BASE}/auth diff --git a/apps/admin-web/.env.prod b/apps/admin-web/.env.prod index f6e505867..ebe8bb96a 100644 --- a/apps/admin-web/.env.prod +++ b/apps/admin-web/.env.prod @@ -2,13 +2,13 @@ NEXT_PUBLIC_ENVIRONMENT=production # Backend -NEXT_PUBLIC_BACKEND_URL=http://localhost:3333 +NEXT_PUBLIC_BACKEND_URL_BASE=https://admin.internal.cugetreg.com/_api # GraphQL -NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL}/_api/graphql +NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL_BASE}/graphql # Sitemap (Frontend URL) -NEXT_PUBLIC_SITE_URL=http://localhost:4200 +NEXT_PUBLIC_SITE_URL=https://admin.internal.cugetreg.com # OAuth url NEXT_PUBLIC_AUTHORIZE_URL=https://auth.internal.cugetreg.com/application/o/authorize/ @@ -20,4 +20,4 @@ NEXT_PUBLIC_CLIENT_ID=2f3a5527c10a61c0489d75825011c69f59743981 NEXT_PUBLIC_REDIRECT_URI=${NEXT_PUBLIC_SITE_URL}/generateToken # Auth URL of backend -NEXT_PUBLIC_AUTH_URL=${NEXT_PUBLIC_BACKEND_URL}/_api/auth +NEXT_PUBLIC_AUTH_URL=${NEXT_PUBLIC_BACKEND_URL_BASE}/auth