public: new page and copy improvements
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
import { queryOptions } from '@tanstack/react-query';
|
||||
import { createServerFn } from '@tanstack/react-start';
|
||||
|
||||
export const getServerEnvs = createServerFn().handler(async () => {
|
||||
export const getServerEnvs = createServerFn().handler(() => {
|
||||
const envs = {
|
||||
apiUrl: String(process.env.API_URL || process.env.NEXT_PUBLIC_API_URL),
|
||||
dashboardUrl: String(
|
||||
process.env.DASHBOARD_URL || process.env.NEXT_PUBLIC_DASHBOARD_URL,
|
||||
process.env.DASHBOARD_URL || process.env.NEXT_PUBLIC_DASHBOARD_URL
|
||||
),
|
||||
isSelfHosted: process.env.SELF_HOSTED !== undefined,
|
||||
isMaintenance: process.env.MAINTENANCE === '1',
|
||||
isDemo: process.env.DEMO_USER_ID !== undefined,
|
||||
};
|
||||
|
||||
return envs;
|
||||
|
||||
Reference in New Issue
Block a user