mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-11-23 01:54:37 +03:00
e2e tests
This commit is contained in:
parent
1d823aea51
commit
32f475eceb
@ -25,7 +25,7 @@
|
||||
"file",
|
||||
"../out/sdk/wasp/client/env.ts"
|
||||
],
|
||||
"f630ded0392d5b60be93e1852f80ea8c75bc10262aee6fb106b6eb2561339362"
|
||||
"8bfc7818c7f133b91ec4bed709575172e226f7f09dcc2ab9bf45754f0af3b229"
|
||||
],
|
||||
[
|
||||
[
|
||||
@ -270,7 +270,7 @@
|
||||
"file",
|
||||
"../out/sdk/wasp/server/env.ts"
|
||||
],
|
||||
"105527a58a272d1c51fc9e5368644aeb4d0df3aa65339b2212af49d9c1992d41"
|
||||
"e38f20080e1b3f5c9a32f7c5d1cf3d058f360c7e759af73c9455502841cdd33c"
|
||||
],
|
||||
[
|
||||
[
|
||||
|
@ -2,7 +2,9 @@ import * as z from 'zod'
|
||||
|
||||
import { ensureEnvSchema } from '../env/index.js'
|
||||
|
||||
const clientEnvSchema = z.object({
|
||||
const userClientEnvSchema = z.object({})
|
||||
|
||||
const waspClientEnvSchema = z.object({
|
||||
REACT_APP_API_URL: z
|
||||
.string({
|
||||
required_error: 'REACT_APP_API_URL is required',
|
||||
@ -10,4 +12,6 @@ const clientEnvSchema = z.object({
|
||||
.default('http://localhost:3001')
|
||||
})
|
||||
|
||||
const clientEnvSchema = waspClientEnvSchema.merge(userClientEnvSchema)
|
||||
|
||||
export const env = ensureEnvSchema(import.meta.env, clientEnvSchema)
|
||||
|
@ -1,11 +1,13 @@
|
||||
import * as z from 'zod';
|
||||
import { ensureEnvSchema } from '../env/index.js';
|
||||
const clientEnvSchema = z.object({
|
||||
const userClientEnvSchema = z.object({});
|
||||
const waspClientEnvSchema = z.object({
|
||||
REACT_APP_API_URL: z
|
||||
.string({
|
||||
required_error: 'REACT_APP_API_URL is required',
|
||||
})
|
||||
.default('http://localhost:3001')
|
||||
});
|
||||
const clientEnvSchema = waspClientEnvSchema.merge(userClientEnvSchema);
|
||||
export const env = ensureEnvSchema(import.meta.env, clientEnvSchema);
|
||||
//# sourceMappingURL=env.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../client/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,iBAAiB,EAAE,CAAC;SACjB,MAAM,CAAC;QACN,cAAc,EAAE,+BAA+B;KAChD,CAAC;SACD,OAAO,CAAC,uBAAuB,CAAC;CACpC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA"}
|
||||
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../client/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAExC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,iBAAiB,EAAE,CAAC;SACjB,MAAM,CAAC;QACN,cAAc,EAAE,+BAA+B;KAChD,CAAC;SACD,OAAO,CAAC,uBAAuB,CAAC;CACpC,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,mBAAmB,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAA;AAEtE,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA"}
|
@ -1,6 +1,7 @@
|
||||
import * as z from 'zod';
|
||||
import { ensureEnvSchema } from '../env/index.js';
|
||||
const serverCommonSchema = z.object({
|
||||
const userServerEnvSchema = z.object({});
|
||||
const waspServerCommonSchema = z.object({
|
||||
PORT: z.coerce.number().default(3001),
|
||||
DATABASE_URL: z.string({
|
||||
required_error: 'DATABASE_URL is required',
|
||||
@ -45,6 +46,7 @@ const serverProdSchema = z.object({
|
||||
WASP_SERVER_URL: serverUrlSchema,
|
||||
WASP_WEB_CLIENT_URL: clientUrlSchema,
|
||||
});
|
||||
const serverCommonSchema = waspServerCommonSchema.merge(userServerEnvSchema);
|
||||
const serverEnvSchema = z.discriminatedUnion('NODE_ENV', [
|
||||
serverDevSchema.merge(serverCommonSchema),
|
||||
serverProdSchema.merge(serverCommonSchema)
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../server/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACrC,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC;QACrB,cAAc,EAAE,0BAA0B;KAC3C,CAAC;IACF,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,8BAA8B,EAAE,CAAC;SAC9B,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE;QACvB,OAAO,EAAE,iEAAiE;KAC3E,CAAC;SACD,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,MAAM,CAAC;SACtC,OAAO,CAAC,OAAO,CAAC;CACpB,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,CAAC;KACtB,MAAM,CAAC;IACN,cAAc,EAAE,6BAA6B;CAC9C,CAAC;KACD,GAAG,CAAC;IACH,OAAO,EAAE,qCAAqC;CAC/C,CA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,CAAC;IACjC,eAAe,EAAE,eAAe;IAChC,mBAAmB,EAAE,eAAe;CACrC,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,sBAAsB,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAA;AAC5E,MAAM,eAAe,GAAG,CAAC,CAAC,kBAAkB,CAAC,UAAU,EAAE;IACvD,eAAe,CAAC,KAAK,CAAC,kBAAkB,CAAC;IACzC,gBAAgB,CAAC,KAAK,CAAC,kBAAkB,CAAC;CAC3C,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,OAAO,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA"}
|
@ -2,7 +2,9 @@ import * as z from 'zod'
|
||||
|
||||
import { ensureEnvSchema } from '../env/index.js'
|
||||
|
||||
const serverCommonSchema = z.object({
|
||||
const userServerEnvSchema = z.object({})
|
||||
|
||||
const waspServerCommonSchema = z.object({
|
||||
PORT: z.coerce.number().default(3001),
|
||||
DATABASE_URL: z.string({
|
||||
required_error: 'DATABASE_URL is required',
|
||||
@ -53,6 +55,7 @@ const serverProdSchema = z.object({
|
||||
WASP_WEB_CLIENT_URL: clientUrlSchema,
|
||||
})
|
||||
|
||||
const serverCommonSchema = waspServerCommonSchema.merge(userServerEnvSchema)
|
||||
const serverEnvSchema = z.discriminatedUnion('NODE_ENV', [
|
||||
serverDevSchema.merge(serverCommonSchema),
|
||||
serverProdSchema.merge(serverCommonSchema)
|
||||
|
@ -2,7 +2,9 @@ import * as z from 'zod'
|
||||
|
||||
import { ensureEnvSchema } from '../env/index.js'
|
||||
|
||||
const clientEnvSchema = z.object({
|
||||
const userClientEnvSchema = z.object({})
|
||||
|
||||
const waspClientEnvSchema = z.object({
|
||||
REACT_APP_API_URL: z
|
||||
.string({
|
||||
required_error: 'REACT_APP_API_URL is required',
|
||||
@ -10,4 +12,6 @@ const clientEnvSchema = z.object({
|
||||
.default('http://localhost:3001')
|
||||
})
|
||||
|
||||
const clientEnvSchema = waspClientEnvSchema.merge(userClientEnvSchema)
|
||||
|
||||
export const env = ensureEnvSchema(import.meta.env, clientEnvSchema)
|
||||
|
@ -1,11 +1,13 @@
|
||||
import * as z from 'zod';
|
||||
import { ensureEnvSchema } from '../env/index.js';
|
||||
const clientEnvSchema = z.object({
|
||||
const userClientEnvSchema = z.object({});
|
||||
const waspClientEnvSchema = z.object({
|
||||
REACT_APP_API_URL: z
|
||||
.string({
|
||||
required_error: 'REACT_APP_API_URL is required',
|
||||
})
|
||||
.default('http://localhost:3001')
|
||||
});
|
||||
const clientEnvSchema = waspClientEnvSchema.merge(userClientEnvSchema);
|
||||
export const env = ensureEnvSchema(import.meta.env, clientEnvSchema);
|
||||
//# sourceMappingURL=env.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../client/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,iBAAiB,EAAE,CAAC;SACjB,MAAM,CAAC;QACN,cAAc,EAAE,+BAA+B;KAChD,CAAC;SACD,OAAO,CAAC,uBAAuB,CAAC;CACpC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA"}
|
||||
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../client/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAExC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,iBAAiB,EAAE,CAAC;SACjB,MAAM,CAAC;QACN,cAAc,EAAE,+BAA+B;KAChD,CAAC;SACD,OAAO,CAAC,uBAAuB,CAAC;CACpC,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,mBAAmB,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAA;AAEtE,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA"}
|
@ -1,6 +1,7 @@
|
||||
import * as z from 'zod';
|
||||
import { ensureEnvSchema } from '../env/index.js';
|
||||
const serverCommonSchema = z.object({
|
||||
const userServerEnvSchema = z.object({});
|
||||
const waspServerCommonSchema = z.object({
|
||||
PORT: z.coerce.number().default(3001),
|
||||
DATABASE_URL: z.string({
|
||||
required_error: 'DATABASE_URL is required',
|
||||
@ -45,6 +46,7 @@ const serverProdSchema = z.object({
|
||||
WASP_SERVER_URL: serverUrlSchema,
|
||||
WASP_WEB_CLIENT_URL: clientUrlSchema,
|
||||
});
|
||||
const serverCommonSchema = waspServerCommonSchema.merge(userServerEnvSchema);
|
||||
const serverEnvSchema = z.discriminatedUnion('NODE_ENV', [
|
||||
serverDevSchema.merge(serverCommonSchema),
|
||||
serverProdSchema.merge(serverCommonSchema)
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../server/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACrC,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC;QACrB,cAAc,EAAE,0BAA0B;KAC3C,CAAC;IACF,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1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CAAA;AAEJ,2EAA2E;AAC3E,yCAAyC;AACzC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IAClC,eAAe,EAAE,eAAe;SAC7B,OAAO,CAAC,uBAAuB,CAAC;IACnC,mBAAmB,EAAE,eAAe;SACjC,OAAO,CAAC,wBAAwB,CAAC;CACrC,CAAC,CAAA;AAEF,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IACjC,eAAe,EAAE,eAAe;IAChC,mBAAmB,EAAE,eAAe;CACrC,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,sBAAsB,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAA;AAC5E,MAAM,eAAe,GAAG,CAAC,CAAC,kBAAkB,CAAC,UAAU,EAAE;IACvD,eAAe,CAAC,KAAK,CAAC,kBAAkB,CAAC;IACzC,gBAAgB,CAAC,KAAK,CAAC,kBAAkB,CAAC;CAC3C,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,OAAO,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA"}
|
@ -2,7 +2,9 @@ import * as z from 'zod'
|
||||
|
||||
import { ensureEnvSchema } from '../env/index.js'
|
||||
|
||||
const serverCommonSchema = z.object({
|
||||
const userServerEnvSchema = z.object({})
|
||||
|
||||
const waspServerCommonSchema = z.object({
|
||||
PORT: z.coerce.number().default(3001),
|
||||
DATABASE_URL: z.string({
|
||||
required_error: 'DATABASE_URL is required',
|
||||
@ -53,6 +55,7 @@ const serverProdSchema = z.object({
|
||||
WASP_WEB_CLIENT_URL: clientUrlSchema,
|
||||
})
|
||||
|
||||
const serverCommonSchema = waspServerCommonSchema.merge(userServerEnvSchema)
|
||||
const serverEnvSchema = z.discriminatedUnion('NODE_ENV', [
|
||||
serverDevSchema.merge(serverCommonSchema),
|
||||
serverProdSchema.merge(serverCommonSchema)
|
||||
|
@ -25,7 +25,7 @@
|
||||
"file",
|
||||
"../out/sdk/wasp/client/env.ts"
|
||||
],
|
||||
"f630ded0392d5b60be93e1852f80ea8c75bc10262aee6fb106b6eb2561339362"
|
||||
"8bfc7818c7f133b91ec4bed709575172e226f7f09dcc2ab9bf45754f0af3b229"
|
||||
],
|
||||
[
|
||||
[
|
||||
@ -270,7 +270,7 @@
|
||||
"file",
|
||||
"../out/sdk/wasp/server/env.ts"
|
||||
],
|
||||
"105527a58a272d1c51fc9e5368644aeb4d0df3aa65339b2212af49d9c1992d41"
|
||||
"e38f20080e1b3f5c9a32f7c5d1cf3d058f360c7e759af73c9455502841cdd33c"
|
||||
],
|
||||
[
|
||||
[
|
||||
|
@ -2,7 +2,9 @@ import * as z from 'zod'
|
||||
|
||||
import { ensureEnvSchema } from '../env/index.js'
|
||||
|
||||
const clientEnvSchema = z.object({
|
||||
const userClientEnvSchema = z.object({})
|
||||
|
||||
const waspClientEnvSchema = z.object({
|
||||
REACT_APP_API_URL: z
|
||||
.string({
|
||||
required_error: 'REACT_APP_API_URL is required',
|
||||
@ -10,4 +12,6 @@ const clientEnvSchema = z.object({
|
||||
.default('http://localhost:3001')
|
||||
})
|
||||
|
||||
const clientEnvSchema = waspClientEnvSchema.merge(userClientEnvSchema)
|
||||
|
||||
export const env = ensureEnvSchema(import.meta.env, clientEnvSchema)
|
||||
|
@ -1,11 +1,13 @@
|
||||
import * as z from 'zod';
|
||||
import { ensureEnvSchema } from '../env/index.js';
|
||||
const clientEnvSchema = z.object({
|
||||
const userClientEnvSchema = z.object({});
|
||||
const waspClientEnvSchema = z.object({
|
||||
REACT_APP_API_URL: z
|
||||
.string({
|
||||
required_error: 'REACT_APP_API_URL is required',
|
||||
})
|
||||
.default('http://localhost:3001')
|
||||
});
|
||||
const clientEnvSchema = waspClientEnvSchema.merge(userClientEnvSchema);
|
||||
export const env = ensureEnvSchema(import.meta.env, clientEnvSchema);
|
||||
//# sourceMappingURL=env.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../client/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,iBAAiB,EAAE,CAAC;SACjB,MAAM,CAAC;QACN,cAAc,EAAE,+BAA+B;KAChD,CAAC;SACD,OAAO,CAAC,uBAAuB,CAAC;CACpC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA"}
|
||||
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../client/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAExC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,iBAAiB,EAAE,CAAC;SACjB,MAAM,CAAC;QACN,cAAc,EAAE,+BAA+B;KAChD,CAAC;SACD,OAAO,CAAC,uBAAuB,CAAC;CACpC,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,mBAAmB,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAA;AAEtE,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA"}
|
@ -1,6 +1,7 @@
|
||||
import * as z from 'zod';
|
||||
import { ensureEnvSchema } from '../env/index.js';
|
||||
const serverCommonSchema = z.object({
|
||||
const userServerEnvSchema = z.object({});
|
||||
const waspServerCommonSchema = z.object({
|
||||
PORT: z.coerce.number().default(3001),
|
||||
DATABASE_URL: z.string({
|
||||
required_error: 'DATABASE_URL is required',
|
||||
@ -45,6 +46,7 @@ const serverProdSchema = z.object({
|
||||
WASP_SERVER_URL: serverUrlSchema,
|
||||
WASP_WEB_CLIENT_URL: clientUrlSchema,
|
||||
});
|
||||
const serverCommonSchema = waspServerCommonSchema.merge(userServerEnvSchema);
|
||||
const serverEnvSchema = z.discriminatedUnion('NODE_ENV', [
|
||||
serverDevSchema.merge(serverCommonSchema),
|
||||
serverProdSchema.merge(serverCommonSchema)
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../server/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACrC,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC;QACrB,cAAc,EAAE,0BAA0B;KAC3C,CAAC;IACF,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,8BAA8B,EAAE,CAAC;SAC9B,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE;QACvB,OAAO,EAAE,iEAAiE;KAC3E,CAAC;SACD,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,MAAM,CAAC;SACtC,OAAO,CAAC,OAAO,CAAC;CACpB,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,CAAC;KACtB,MAAM,CAAC;IACN,cAAc,EAAE,6BAA6B;CAC9C,CAAC;KACD,GAAG,CAAC;IACH,OAAO,EAAE,qCAAqC;CAC/C,CAAC,CAAA;AAEJ,MAAM,eAAe,GAAG,CAAC;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AmB,EAAE,eAAe;CACrC,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,sBAAsB,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAA;AAC5E,MAAM,eAAe,GAAG,CAAC,CAAC,kBAAkB,CAAC,UAAU,EAAE;IACvD,eAAe,CAAC,KAAK,CAAC,kBAAkB,CAAC;IACzC,gBAAgB,CAAC,KAAK,CAAC,kBAAkB,CAAC;CAC3C,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,OAAO,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA"}
|
@ -2,7 +2,9 @@ import * as z from 'zod'
|
||||
|
||||
import { ensureEnvSchema } from '../env/index.js'
|
||||
|
||||
const serverCommonSchema = z.object({
|
||||
const userServerEnvSchema = z.object({})
|
||||
|
||||
const waspServerCommonSchema = z.object({
|
||||
PORT: z.coerce.number().default(3001),
|
||||
DATABASE_URL: z.string({
|
||||
required_error: 'DATABASE_URL is required',
|
||||
@ -53,6 +55,7 @@ const serverProdSchema = z.object({
|
||||
WASP_WEB_CLIENT_URL: clientUrlSchema,
|
||||
})
|
||||
|
||||
const serverCommonSchema = waspServerCommonSchema.merge(userServerEnvSchema)
|
||||
const serverEnvSchema = z.discriminatedUnion('NODE_ENV', [
|
||||
serverDevSchema.merge(serverCommonSchema),
|
||||
serverProdSchema.merge(serverCommonSchema)
|
||||
|
@ -228,7 +228,7 @@
|
||||
"file",
|
||||
"../out/sdk/wasp/client/env.ts"
|
||||
],
|
||||
"f630ded0392d5b60be93e1852f80ea8c75bc10262aee6fb106b6eb2561339362"
|
||||
"8bfc7818c7f133b91ec4bed709575172e226f7f09dcc2ab9bf45754f0af3b229"
|
||||
],
|
||||
[
|
||||
[
|
||||
@ -669,7 +669,7 @@
|
||||
"file",
|
||||
"../out/sdk/wasp/server/env.ts"
|
||||
],
|
||||
"7fbf42a69723970df679ed0d89fc2c80e9d2bd3e433af73a838e3c1033ba459a"
|
||||
"75019681fe3c0273d4e02bf1042549e4f5345bc3e64ccf465590710e01649f4a"
|
||||
],
|
||||
[
|
||||
[
|
||||
@ -697,7 +697,7 @@
|
||||
"file",
|
||||
"../out/sdk/wasp/server/jobs/core/pgBoss/pgBoss.ts"
|
||||
],
|
||||
"6ffb60e3dd86ebf2f83248d18e3d647018b3d583233c64259559221fe9d2c882"
|
||||
"44ea6eb19cb4e283e24b4d3da1105539ef81cd36dfeb71d9fa5695f0b0c15b34"
|
||||
],
|
||||
[
|
||||
[
|
||||
|
@ -2,7 +2,9 @@ import * as z from 'zod'
|
||||
|
||||
import { ensureEnvSchema } from '../env/index.js'
|
||||
|
||||
const clientEnvSchema = z.object({
|
||||
const userClientEnvSchema = z.object({})
|
||||
|
||||
const waspClientEnvSchema = z.object({
|
||||
REACT_APP_API_URL: z
|
||||
.string({
|
||||
required_error: 'REACT_APP_API_URL is required',
|
||||
@ -10,4 +12,6 @@ const clientEnvSchema = z.object({
|
||||
.default('http://localhost:3001')
|
||||
})
|
||||
|
||||
const clientEnvSchema = waspClientEnvSchema.merge(userClientEnvSchema)
|
||||
|
||||
export const env = ensureEnvSchema(import.meta.env, clientEnvSchema)
|
||||
|
@ -1,11 +1,13 @@
|
||||
import * as z from 'zod';
|
||||
import { ensureEnvSchema } from '../env/index.js';
|
||||
const clientEnvSchema = z.object({
|
||||
const userClientEnvSchema = z.object({});
|
||||
const waspClientEnvSchema = z.object({
|
||||
REACT_APP_API_URL: z
|
||||
.string({
|
||||
required_error: 'REACT_APP_API_URL is required',
|
||||
})
|
||||
.default('http://localhost:3001')
|
||||
});
|
||||
const clientEnvSchema = waspClientEnvSchema.merge(userClientEnvSchema);
|
||||
export const env = ensureEnvSchema(import.meta.env, clientEnvSchema);
|
||||
//# sourceMappingURL=env.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../client/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,iBAAiB,EAAE,CAAC;SACjB,MAAM,CAAC;QACN,cAAc,EAAE,+BAA+B;KAChD,CAAC;SACD,OAAO,CAAC,uBAAuB,CAAC;CACpC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA"}
|
||||
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../client/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAExC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,iBAAiB,EAAE,CAAC;SACjB,MAAM,CAAC;QACN,cAAc,EAAE,+BAA+B;KAChD,CAAC;SACD,OAAO,CAAC,uBAAuB,CAAC;CACpC,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,mBAAmB,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAA;AAEtE,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA"}
|
@ -1,6 +1,7 @@
|
||||
import * as z from 'zod';
|
||||
import { ensureEnvSchema } from '../env/index.js';
|
||||
const serverCommonSchema = z.object({
|
||||
const userServerEnvSchema = z.object({});
|
||||
const waspServerCommonSchema = z.object({
|
||||
PORT: z.coerce.number().default(3001),
|
||||
DATABASE_URL: z.string({
|
||||
required_error: 'DATABASE_URL is required',
|
||||
@ -57,6 +58,7 @@ const serverProdSchema = z.object({
|
||||
WASP_WEB_CLIENT_URL: clientUrlSchema,
|
||||
JWT_SECRET: jwtTokenSchema,
|
||||
});
|
||||
const serverCommonSchema = waspServerCommonSchema.merge(userServerEnvSchema);
|
||||
const serverEnvSchema = z.discriminatedUnion('NODE_ENV', [
|
||||
serverDevSchema.merge(serverCommonSchema),
|
||||
serverProdSchema.merge(serverCommonSchema)
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../server/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACrC,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC;QACrB,cAAc,EAAE,0BAA0B;KAC3C,CAAC;IACF,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC;QACzB,cAAc,EAAE,8BAA8B;KAC/C,CAAC;IACF,8BAA8B,EAAE,CAAC;SAC9B,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE;QACvB,OAAO,EAAE,iEAAiE;KAC3E,CAAC;SACD,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,MAAM,CAAC;SACtC,OAAO,CAAC,OAAO,CAAC;IACnB,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC;QACzB,cAAc,EAAE,8BAA8B;KAC/C,CAAC;IACF,oBAAoB,EAAE,CAAC,CAAC,MAAM,CAAC;QAC7B,cAAc,EAAE,kCAAkC;KACnD,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,CAAC;KACtB,MAAM,CAAC;IACN,cAAc,EAAE,6BAA6B;CAC9C,CAAC;KACD,GAAG,CAAC;IACH,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AA2E;AAC3E,yCAAyC;AACzC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IAClC,eAAe,EAAE,eAAe;SAC7B,OAAO,CAAC,uBAAuB,CAAC;IACnC,mBAAmB,EAAE,eAAe;SACjC,OAAO,CAAC,wBAAwB,CAAC;IACpC,UAAU,EAAE,cAAc;SACvB,OAAO,CAAC,cAAc,CAAC;CAC3B,CAAC,CAAA;AAEF,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IACjC,eAAe,EAAE,eAAe;IAChC,mBAAmB,EAAE,eAAe;IACpC,UAAU,EAAE,cAAc;CAC3B,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,sBAAsB,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAA;AAC5E,MAAM,eAAe,GAAG,CAAC,CAAC,kBAAkB,CAAC,UAAU,EAAE;IACvD,eAAe,CAAC,KAAK,CAAC,kBAAkB,CAAC;IACzC,gBAAgB,CAAC,KAAK,CAAC,kBAAkB,CAAC;CAC3C,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,OAAO,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA"}
|
@ -1,6 +1,5 @@
|
||||
import PgBoss from 'pg-boss';
|
||||
import { env } from '../../../env.js';
|
||||
import { config } from '../../../index.js';
|
||||
import { config, env } from '../../../index.js';
|
||||
const boss = createPgBoss();
|
||||
function createPgBoss() {
|
||||
let pgBossNewOptions = {
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"pgBoss.js","sourceRoot":"","sources":["../../../../../server/jobs/core/pgBoss/pgBoss.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAA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AAY,CAAC,OAAO,CAAA;AACrC,CAAC"}
|
@ -2,7 +2,9 @@ import * as z from 'zod'
|
||||
|
||||
import { ensureEnvSchema } from '../env/index.js'
|
||||
|
||||
const serverCommonSchema = z.object({
|
||||
const userServerEnvSchema = z.object({})
|
||||
|
||||
const waspServerCommonSchema = z.object({
|
||||
PORT: z.coerce.number().default(3001),
|
||||
DATABASE_URL: z.string({
|
||||
required_error: 'DATABASE_URL is required',
|
||||
@ -65,6 +67,7 @@ const serverProdSchema = z.object({
|
||||
JWT_SECRET: jwtTokenSchema,
|
||||
})
|
||||
|
||||
const serverCommonSchema = waspServerCommonSchema.merge(userServerEnvSchema)
|
||||
const serverEnvSchema = z.discriminatedUnion('NODE_ENV', [
|
||||
serverDevSchema.merge(serverCommonSchema),
|
||||
serverProdSchema.merge(serverCommonSchema)
|
||||
|
@ -1,6 +1,5 @@
|
||||
import PgBoss from 'pg-boss'
|
||||
import { env } from '../../../env.js'
|
||||
import { config } from '../../../index.js'
|
||||
import { config, env } from '../../../index.js'
|
||||
|
||||
const boss = createPgBoss()
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
"file",
|
||||
"../out/sdk/wasp/client/env.ts"
|
||||
],
|
||||
"f630ded0392d5b60be93e1852f80ea8c75bc10262aee6fb106b6eb2561339362"
|
||||
"8bfc7818c7f133b91ec4bed709575172e226f7f09dcc2ab9bf45754f0af3b229"
|
||||
],
|
||||
[
|
||||
[
|
||||
@ -277,7 +277,7 @@
|
||||
"file",
|
||||
"../out/sdk/wasp/server/env.ts"
|
||||
],
|
||||
"105527a58a272d1c51fc9e5368644aeb4d0df3aa65339b2212af49d9c1992d41"
|
||||
"e38f20080e1b3f5c9a32f7c5d1cf3d058f360c7e759af73c9455502841cdd33c"
|
||||
],
|
||||
[
|
||||
[
|
||||
@ -305,7 +305,7 @@
|
||||
"file",
|
||||
"../out/sdk/wasp/server/jobs/core/pgBoss/pgBoss.ts"
|
||||
],
|
||||
"6ffb60e3dd86ebf2f83248d18e3d647018b3d583233c64259559221fe9d2c882"
|
||||
"44ea6eb19cb4e283e24b4d3da1105539ef81cd36dfeb71d9fa5695f0b0c15b34"
|
||||
],
|
||||
[
|
||||
[
|
||||
|
@ -2,7 +2,9 @@ import * as z from 'zod'
|
||||
|
||||
import { ensureEnvSchema } from '../env/index.js'
|
||||
|
||||
const clientEnvSchema = z.object({
|
||||
const userClientEnvSchema = z.object({})
|
||||
|
||||
const waspClientEnvSchema = z.object({
|
||||
REACT_APP_API_URL: z
|
||||
.string({
|
||||
required_error: 'REACT_APP_API_URL is required',
|
||||
@ -10,4 +12,6 @@ const clientEnvSchema = z.object({
|
||||
.default('http://localhost:3001')
|
||||
})
|
||||
|
||||
const clientEnvSchema = waspClientEnvSchema.merge(userClientEnvSchema)
|
||||
|
||||
export const env = ensureEnvSchema(import.meta.env, clientEnvSchema)
|
||||
|
@ -1,11 +1,13 @@
|
||||
import * as z from 'zod';
|
||||
import { ensureEnvSchema } from '../env/index.js';
|
||||
const clientEnvSchema = z.object({
|
||||
const userClientEnvSchema = z.object({});
|
||||
const waspClientEnvSchema = z.object({
|
||||
REACT_APP_API_URL: z
|
||||
.string({
|
||||
required_error: 'REACT_APP_API_URL is required',
|
||||
})
|
||||
.default('http://localhost:3001')
|
||||
});
|
||||
const clientEnvSchema = waspClientEnvSchema.merge(userClientEnvSchema);
|
||||
export const env = ensureEnvSchema(import.meta.env, clientEnvSchema);
|
||||
//# sourceMappingURL=env.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../client/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,iBAAiB,EAAE,CAAC;SACjB,MAAM,CAAC;QACN,cAAc,EAAE,+BAA+B;KAChD,CAAC;SACD,OAAO,CAAC,uBAAuB,CAAC;CACpC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA"}
|
||||
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../client/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAExC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,iBAAiB,EAAE,CAAC;SACjB,MAAM,CAAC;QACN,cAAc,EAAE,+BAA+B;KAChD,CAAC;SACD,OAAO,CAAC,uBAAuB,CAAC;CACpC,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,mBAAmB,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAA;AAEtE,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA"}
|
@ -1,6 +1,7 @@
|
||||
import * as z from 'zod';
|
||||
import { ensureEnvSchema } from '../env/index.js';
|
||||
const serverCommonSchema = z.object({
|
||||
const userServerEnvSchema = z.object({});
|
||||
const waspServerCommonSchema = z.object({
|
||||
PORT: z.coerce.number().default(3001),
|
||||
DATABASE_URL: z.string({
|
||||
required_error: 'DATABASE_URL is required',
|
||||
@ -45,6 +46,7 @@ const serverProdSchema = z.object({
|
||||
WASP_SERVER_URL: serverUrlSchema,
|
||||
WASP_WEB_CLIENT_URL: clientUrlSchema,
|
||||
});
|
||||
const serverCommonSchema = waspServerCommonSchema.merge(userServerEnvSchema);
|
||||
const serverEnvSchema = z.discriminatedUnion('NODE_ENV', [
|
||||
serverDevSchema.merge(serverCommonSchema),
|
||||
serverProdSchema.merge(serverCommonSchema)
|
||||
|
@ -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C,CAAA"}
|
@ -1,6 +1,5 @@
|
||||
import PgBoss from 'pg-boss';
|
||||
import { env } from '../../../env.js';
|
||||
import { config } from '../../../index.js';
|
||||
import { config, env } from '../../../index.js';
|
||||
const boss = createPgBoss();
|
||||
function createPgBoss() {
|
||||
let pgBossNewOptions = {
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"pgBoss.js","sourceRoot":"","sources":["../../../../../server/jobs/core/pgBoss/pgBoss.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE1C,MAAM,IAAI,GAAG,YAAY,EAAE,CAAA;AAE3B,SAAS,YAAY;IACnB,IAAI,gBAAgB,GAAG;QACrB,gBAAgB,EAAE,MAAM,CAAC,WAAW;KACrC,CAAA;IAED,uFAAuF;IACvF,IAAI,GAAG,CAAC,mBAAmB,EAAE,CAAC;QAC5B,IAAI,CAAC;YACH,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAA;QACxD,CAAC;QAAC,WAAM,CAAC;YACP,OAAO,CAAC,KAAK,CACX,4EAA4E,CAC7E,CAAA;QACH,CAAC;IACH,CAAC;IAED,OAAO,IAAI,MAAM,CAAC,gBAAgB,CAAC,CAAA;AACrC,CAAC;AAED,IAAI,oBAA4C,CAAA;AAChD,IAAI,mBAA2C,CAAA;AAC/C,cAAc;AACd,yEAAyE;AACzE,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;IACnE,oBAAoB,GAAG,OAAO,CAAA;IAC9B,mBAAmB,GAAG,MAAM,CAAA;AAC9B,CAAC,CAAC,CAAA;AAEF,IAAK,YAKJ;AALD,WAAK,YAAY;IACf,uCAAuB,CAAA;IACvB,qCAAqB,CAAA;IAC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AM,IAAI,CAAC,KAAK,EAAE,CAAA;IACpB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAA;QACzC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QACpB,YAAY,GAAG,YAAY,CAAC,KAAK,CAAA;QACjC,mBAAmB,CAAC,IAAI,CAAC,CAAA;QACzB,OAAM;IACR,CAAC;IAED,oBAAoB,CAAC,IAAI,CAAC,CAAA;IAE1B,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAA;IAC/B,YAAY,GAAG,YAAY,CAAC,OAAO,CAAA;AACrC,CAAC"}
|
@ -2,7 +2,9 @@ import * as z from 'zod'
|
||||
|
||||
import { ensureEnvSchema } from '../env/index.js'
|
||||
|
||||
const serverCommonSchema = z.object({
|
||||
const userServerEnvSchema = z.object({})
|
||||
|
||||
const waspServerCommonSchema = z.object({
|
||||
PORT: z.coerce.number().default(3001),
|
||||
DATABASE_URL: z.string({
|
||||
required_error: 'DATABASE_URL is required',
|
||||
@ -53,6 +55,7 @@ const serverProdSchema = z.object({
|
||||
WASP_WEB_CLIENT_URL: clientUrlSchema,
|
||||
})
|
||||
|
||||
const serverCommonSchema = waspServerCommonSchema.merge(userServerEnvSchema)
|
||||
const serverEnvSchema = z.discriminatedUnion('NODE_ENV', [
|
||||
serverDevSchema.merge(serverCommonSchema),
|
||||
serverProdSchema.merge(serverCommonSchema)
|
||||
|
@ -1,6 +1,5 @@
|
||||
import PgBoss from 'pg-boss'
|
||||
import { env } from '../../../env.js'
|
||||
import { config } from '../../../index.js'
|
||||
import { config, env } from '../../../index.js'
|
||||
|
||||
const boss = createPgBoss()
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
"file",
|
||||
"../out/sdk/wasp/client/env.ts"
|
||||
],
|
||||
"f630ded0392d5b60be93e1852f80ea8c75bc10262aee6fb106b6eb2561339362"
|
||||
"8bfc7818c7f133b91ec4bed709575172e226f7f09dcc2ab9bf45754f0af3b229"
|
||||
],
|
||||
[
|
||||
[
|
||||
@ -270,7 +270,7 @@
|
||||
"file",
|
||||
"../out/sdk/wasp/server/env.ts"
|
||||
],
|
||||
"105527a58a272d1c51fc9e5368644aeb4d0df3aa65339b2212af49d9c1992d41"
|
||||
"e38f20080e1b3f5c9a32f7c5d1cf3d058f360c7e759af73c9455502841cdd33c"
|
||||
],
|
||||
[
|
||||
[
|
||||
|
@ -2,7 +2,9 @@ import * as z from 'zod'
|
||||
|
||||
import { ensureEnvSchema } from '../env/index.js'
|
||||
|
||||
const clientEnvSchema = z.object({
|
||||
const userClientEnvSchema = z.object({})
|
||||
|
||||
const waspClientEnvSchema = z.object({
|
||||
REACT_APP_API_URL: z
|
||||
.string({
|
||||
required_error: 'REACT_APP_API_URL is required',
|
||||
@ -10,4 +12,6 @@ const clientEnvSchema = z.object({
|
||||
.default('http://localhost:3001')
|
||||
})
|
||||
|
||||
const clientEnvSchema = waspClientEnvSchema.merge(userClientEnvSchema)
|
||||
|
||||
export const env = ensureEnvSchema(import.meta.env, clientEnvSchema)
|
||||
|
@ -1,11 +1,13 @@
|
||||
import * as z from 'zod';
|
||||
import { ensureEnvSchema } from '../env/index.js';
|
||||
const clientEnvSchema = z.object({
|
||||
const userClientEnvSchema = z.object({});
|
||||
const waspClientEnvSchema = z.object({
|
||||
REACT_APP_API_URL: z
|
||||
.string({
|
||||
required_error: 'REACT_APP_API_URL is required',
|
||||
})
|
||||
.default('http://localhost:3001')
|
||||
});
|
||||
const clientEnvSchema = waspClientEnvSchema.merge(userClientEnvSchema);
|
||||
export const env = ensureEnvSchema(import.meta.env, clientEnvSchema);
|
||||
//# sourceMappingURL=env.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../client/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,iBAAiB,EAAE,CAAC;SACjB,MAAM,CAAC;QACN,cAAc,EAAE,+BAA+B;KAChD,CAAC;SACD,OAAO,CAAC,uBAAuB,CAAC;CACpC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA"}
|
||||
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../client/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAExC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,iBAAiB,EAAE,CAAC;SACjB,MAAM,CAAC;QACN,cAAc,EAAE,+BAA+B;KAChD,CAAC;SACD,OAAO,CAAC,uBAAuB,CAAC;CACpC,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,mBAAmB,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAA;AAEtE,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA"}
|
@ -1,6 +1,7 @@
|
||||
import * as z from 'zod';
|
||||
import { ensureEnvSchema } from '../env/index.js';
|
||||
const serverCommonSchema = z.object({
|
||||
const userServerEnvSchema = z.object({});
|
||||
const waspServerCommonSchema = z.object({
|
||||
PORT: z.coerce.number().default(3001),
|
||||
DATABASE_URL: z.string({
|
||||
required_error: 'DATABASE_URL is required',
|
||||
@ -45,6 +46,7 @@ const serverProdSchema = z.object({
|
||||
WASP_SERVER_URL: serverUrlSchema,
|
||||
WASP_WEB_CLIENT_URL: clientUrlSchema,
|
||||
});
|
||||
const serverCommonSchema = waspServerCommonSchema.merge(userServerEnvSchema);
|
||||
const serverEnvSchema = z.discriminatedUnion('NODE_ENV', [
|
||||
serverDevSchema.merge(serverCommonSchema),
|
||||
serverProdSchema.merge(serverCommonSchema)
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../server/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACrC,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC;QACrB,cAAc,EAAE,0BAA0B;KAC3C,CAAC;IACF,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,8BAA8B,EAAE,CAAC;SAC9B,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE;QACvB,OAAO,EAAE,iEAAiE;KAC3E,CAAC;SACD,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,MAAM,CAAC;SACtC,OAAO,CAAC,OAAO,CAAC;CACpB,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,CAAC;KACtB,MAAM,CAAC;IACN,cAAc,EAAE,6BAA6B;CAC9C,CAAC;KACD,GAAG,CAAC;IACH,OAAO,EAAE,qCAAqC;CAC/C,CAAC,CAAA;AAEJ,MAAM,eAAe,GAAG,CAAC;KACtB,MAAM,CAAC;IACN,cAAc,EAAE,iCAAiC;CAClD,CAAC;KACD,GAAG,CAAC;IACH,OAAO,EAAE,yCAAyC;CACnD,CAAC,CAAA;AAEJ,MAAM,cAAc,GAAG,CAAC;KACrB,MAAM,CAAC;IACN,cAAc,EAAE,wBAAwB;CACzC,CAAC,CAAA;AAEJ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AC;IACzC,gBAAgB,CAAC,KAAK,CAAC,kBAAkB,CAAC;CAC3C,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,OAAO,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA"}
|
@ -2,7 +2,9 @@ import * as z from 'zod'
|
||||
|
||||
import { ensureEnvSchema } from '../env/index.js'
|
||||
|
||||
const serverCommonSchema = z.object({
|
||||
const userServerEnvSchema = z.object({})
|
||||
|
||||
const waspServerCommonSchema = z.object({
|
||||
PORT: z.coerce.number().default(3001),
|
||||
DATABASE_URL: z.string({
|
||||
required_error: 'DATABASE_URL is required',
|
||||
@ -53,6 +55,7 @@ const serverProdSchema = z.object({
|
||||
WASP_WEB_CLIENT_URL: clientUrlSchema,
|
||||
})
|
||||
|
||||
const serverCommonSchema = waspServerCommonSchema.merge(userServerEnvSchema)
|
||||
const serverEnvSchema = z.discriminatedUnion('NODE_ENV', [
|
||||
serverDevSchema.merge(serverCommonSchema),
|
||||
serverProdSchema.merge(serverCommonSchema)
|
||||
|
Loading…
Reference in New Issue
Block a user