@gigadrive/network-config 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -15,8 +15,6 @@ var findConfig = (projectFolder) => {
15
15
  // src/parse-config.ts
16
16
  import Ajv from "ajv";
17
17
  import addFormats from "ajv-formats";
18
- import fs5 from "fs";
19
- import path4 from "path";
20
18
 
21
19
  // src/build-output-v3/parse.ts
22
20
  import { getFilesForPattern } from "@gigadrive/build-utils";
@@ -237,16 +235,16 @@ var parseConfigV4 = async (config, projectFolder) => {
237
235
  const errors = [];
238
236
  const warnings = [];
239
237
  if (config.functions != null) {
240
- for (const [path5, func] of Object.entries(config.functions)) {
241
- const settings = getFunctionSettings(path5, config);
238
+ for (const [path4, func] of Object.entries(config.functions)) {
239
+ const settings = getFunctionSettings(path4, config);
242
240
  if (settings == null) {
243
- throw new Error(`Settings invalid for function at path '${path5}'`);
241
+ throw new Error(`Settings invalid for function at path '${path4}'`);
244
242
  }
245
- (await getFilesForPattern2(path5, projectFolder, func.excludeFiles)).forEach((file) => {
243
+ (await getFilesForPattern2(path4, projectFolder, func.excludeFiles)).forEach((file) => {
246
244
  if (entrypoints.find((entrypoint) => entrypoint.path === file)) {
247
245
  return;
248
246
  }
249
- if (config.functions != null && Object.keys(config.functions).find((func2) => func2 === file && func2 !== path5)) {
247
+ if (config.functions != null && Object.keys(config.functions).find((func2) => func2 === file && func2 !== path4)) {
250
248
  return;
251
249
  }
252
250
  entrypoints.push({
@@ -309,10 +307,10 @@ var parseConfigV4 = async (config, projectFolder) => {
309
307
  })
310
308
  };
311
309
  };
312
- var getFunctionSettings = (path5, config) => {
310
+ var getFunctionSettings = (path4, config) => {
313
311
  let functionSettings;
314
312
  for (const [key, value] of Object.entries(config.functions ?? {})) {
315
- if (minimatch(path5, key) || new RegExp(key).test(path5)) {
313
+ if (minimatch(path4, key) || new RegExp(key).test(path4)) {
316
314
  if (functionSettings == null) {
317
315
  functionSettings = {
318
316
  memory: 128,
@@ -349,8 +347,343 @@ var getFunctionSettings = (path5, config) => {
349
347
  return functionSettings;
350
348
  };
351
349
 
350
+ // src/v4/schema.json
351
+ var schema_default = {
352
+ $schema: "http://json-schema.org/draft-07/schema#",
353
+ title: "Config V4",
354
+ description: "Configuration schema for version 4",
355
+ type: "object",
356
+ required: ["version"],
357
+ properties: {
358
+ version: {
359
+ type: "integer",
360
+ enum: [4],
361
+ description: "The version of the configuration file"
362
+ },
363
+ presets: {
364
+ type: ["array", "null"],
365
+ items: {
366
+ type: "string",
367
+ format: "uri"
368
+ },
369
+ description: "A list of presets to apply to the project. Each preset will be applied in order."
370
+ },
371
+ assets: {
372
+ type: ["string", "null"],
373
+ description: "The folder which holds the assets to be deployed to the edge. Defaults to none."
374
+ },
375
+ populateAssetCache: {
376
+ type: ["boolean", "null"],
377
+ description: "If true, the assets will be cached at the edge during deployment. This may increase the deployment time, depending on the size of the assets. Defaults to false."
378
+ },
379
+ regions: {
380
+ type: ["array", "null"],
381
+ description: 'The regions to which the project will be deployed. Use "global" to deploy to all regions. More regions will incur higher costs.',
382
+ items: {
383
+ type: "string"
384
+ }
385
+ },
386
+ build_commands: {
387
+ type: ["array", "null"],
388
+ description: "The commands to run to build the project. For example, `bun install` or `npm install`.",
389
+ items: {
390
+ type: "string"
391
+ }
392
+ },
393
+ functions: {
394
+ type: ["object", "null"],
395
+ description: "The serverless functions to deploy.",
396
+ additionalProperties: {
397
+ type: "object",
398
+ properties: {
399
+ memory: {
400
+ type: "number",
401
+ description: "The memory in MB to allocate to the function. Defaults to 128.",
402
+ maximum: 3009,
403
+ minimum: 128
404
+ },
405
+ max_duration: {
406
+ type: "number",
407
+ description: "The max duration in seconds for the function after which it will be terminated. Defaults to 30.",
408
+ maximum: 900,
409
+ minimum: 1
410
+ },
411
+ runtime: {
412
+ $ref: "#/$defs/runtimes",
413
+ description: "The runtime to use for the function."
414
+ },
415
+ schedule: {
416
+ type: "string",
417
+ description: "An expression to schedule the function to run at specific times.",
418
+ pattern: "^(?:rate[(](?:(?:1[ ]+(hour|minute|day))|(?:[0-9]+[ ]+(hours|minutes|days)))[)])|(?:cron[(](?:(?:(?:[0-5]?[0-9])|[*])(?:(?:[-](?:(?:[0-5]?[0-9])|[*]))|(?:[/][0-9]+))?(?:[,](?:(?:[0-5]?[0-9])|[*])(?:(?:[-](?:(?:[0-5]?[0-9])|[*]))|(?:[/][0-9]+))?)*)[ ]+(?:(?:(?:[0-2]?[0-9])|[*])(?:(?:[-](?:(?:[0-2]?[0-9])|[*]))|(?:[/][0-9]+))?(?:[,](?:(?:[0-2]?[0-9])|[*])(?:(?:[-](?:(?:[0-2]?[0-9])|[*]))|(?:[/][0-9]+))?)*)[ ]+(?:(?:[?][ ]+(?:(?:(?:[1]?[0-9])|(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)|[*])(?:(?:[-](?:(?:[1]?[0-9])|(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)|[*])(?:[/][0-9]+)?)|(?:[/][0-9]+))?(?:[,](?:(?:[1]?[0-9])|(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)|[*])(?:(?:[-](?:(?:[1]?[0-9])|(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)|[*])(?:[/][0-9]+)?)|(?:[/][0-9]+))?)*)[ ]+(?:(?:(?:[1-7]|(?:SUN|MON|TUE|WED|THU|FRI|SAT))[#][0-5])|(?:(?:(?:(?:[1-7]|(?:SUN|MON|TUE|WED|THU|FRI|SAT))L?)|[L*])(?:(?:[-](?:(?:(?:[1-7]|(?:SUN|MON|TUE|WED|THU|FRI|SAT))L?)|[L*]))|(?:[/][0-9]+))?(?:[,](?:(?:(?:[1-7]|(?:SUN|MON|TUE|WED|THU|FRI|SAT))L?)|[L*])(?:(?:[-](?:(?:(?:[1-7]|(?:SUN|MON|TUE|WED|THU|FRI|SAT))L?)|[L*]))|(?:[/][0-9]+))?)*)))|(?:(?:(?:(?:(?:[1-3]?[0-9])W?)|LW|[L*])(?:(?:[-](?:(?:(?:[1-3]?[0-9])W?)|LW|[L*]))|(?:[/][0-9]+))?(?:[,](?:(?:(?:[1-3]?[0-9])W?)|LW|[L*])(?:(?:[-](?:(?:(?:[1-3]?[0-9])W?)|LW|[L*]))|(?:[/][0-9]+))?)*)[ ]+(?:(?:(?:[1]?[0-9])|(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)|[*])(?:(?:[-](?:(?:[1]?[0-9])|(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)|[*])(?:[/][0-9]+)?)|(?:[/][0-9]+))?(?:[,](?:(?:[1]?[0-9])|(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)|[*])(?:(?:[-](?:(?:[1]?[0-9])|(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)|[*])(?:[/][0-9]+)?)|(?:[/][0-9]+))?)*)[ ]+[?]))[ ]+(?:(?:(?:[12][0-9]{3})|[*])(?:(?:[-](?:(?:[12][0-9]{3})|[*]))|(?:[/][0-9]+))?(?:[,](?:(?:[12][0-9]{3})|[*])(?:(?:[-](?:(?:[12][0-9]{3})|[*]))|(?:[/][0-9]+))?)*)[)])$"
419
+ },
420
+ symlinks: {
421
+ type: "object",
422
+ description: "A list of symbolic links to create in the function's package.",
423
+ maxProperties: 100,
424
+ minProperties: 1,
425
+ patternProperties: {
426
+ "^.{1,256}$": {
427
+ type: "string",
428
+ maxLength: 256
429
+ }
430
+ },
431
+ additionalProperties: false
432
+ },
433
+ excludeFiles: {
434
+ oneOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
435
+ description: "A glob pattern to match files that should be excluded from your Serverless Function. If you're using a Community Runtime, the behavior might vary."
436
+ },
437
+ includeFiles: {
438
+ oneOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
439
+ description: "A glob pattern to match files that should be included in your Serverless Function. If you're using a Community Runtime, the behavior might vary."
440
+ }
441
+ }
442
+ }
443
+ },
444
+ env: {
445
+ type: "object",
446
+ maxProperties: 100,
447
+ minProperties: 0,
448
+ patternProperties: {
449
+ ".+": {
450
+ maxLength: 65536,
451
+ minLength: 0,
452
+ type: "string"
453
+ }
454
+ },
455
+ additionalProperties: false,
456
+ description: "Additional environment variables to set during runtime and build."
457
+ },
458
+ routes: {
459
+ type: ["array", "null"],
460
+ description: "A list of route definitions.",
461
+ maxItems: 1024,
462
+ items: {
463
+ type: "object",
464
+ required: ["source", "destination"],
465
+ properties: {
466
+ source: {
467
+ description: "A pattern that matches each incoming pathname (excluding querystring).",
468
+ type: "string",
469
+ maxLength: 4096
470
+ },
471
+ destination: {
472
+ description: "An absolute pathname to an existing resource or an external URL.",
473
+ type: "string",
474
+ maxLength: 4096
475
+ },
476
+ has: {
477
+ $ref: "#/$defs/matchRequirements"
478
+ },
479
+ missing: {
480
+ $ref: "#/$defs/matchRequirements"
481
+ },
482
+ statusCode: {
483
+ description: "An optional integer to override the status code of the response.",
484
+ type: "integer",
485
+ minimum: 100,
486
+ maximum: 999
487
+ },
488
+ redirect: {
489
+ type: "boolean",
490
+ description: "An optional boolean to force a redirect response."
491
+ },
492
+ methods: {
493
+ type: "array",
494
+ description: "The HTTP methods to match for the route. Defaults to all methods.",
495
+ items: {
496
+ type: "string",
497
+ enum: ["ANY", "GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]
498
+ }
499
+ },
500
+ headers: {
501
+ type: "object",
502
+ description: "Additional headers to add to the response.",
503
+ additionalProperties: {
504
+ type: "string"
505
+ }
506
+ }
507
+ }
508
+ }
509
+ },
510
+ services: {
511
+ type: "object",
512
+ description: "Optionally, specify additional services like databases to deploy.",
513
+ properties: {
514
+ redis: {
515
+ oneOf: [
516
+ {
517
+ type: "null"
518
+ },
519
+ {
520
+ type: "object",
521
+ properties: {
522
+ envBindings: {
523
+ type: "object",
524
+ description: "Optionally, specify what environment variables the credentials will be bound to. For example: `{ url: 'REDIS_URL' }` will bind the `url` environment variable to the Redis URL. If you don't specify any bindings, they will be bound to the REDIS_URL, REDIS_HOST, REDIS_PORT, REDIS_PASSWORD, REDIS_DB, and REDIS_SSL environment variables.",
525
+ additionalProperties: false,
526
+ properties: {
527
+ url: { type: "string" },
528
+ host: { type: "string" },
529
+ port: { type: "string" },
530
+ password: { type: "string" },
531
+ db: { type: "string" },
532
+ ssl: { type: "string" }
533
+ }
534
+ },
535
+ primaryRegion: {
536
+ type: "string",
537
+ description: "The primary region to deploy the Redis instance to.",
538
+ enum: [
539
+ "us-east-1",
540
+ "us-east-2",
541
+ "us-west-1",
542
+ "us-west-2",
543
+ "eu-central-1",
544
+ "eu-west-1",
545
+ "eu-west-2",
546
+ "sa-east-1",
547
+ "ap-south-1",
548
+ "ap-northeast-1",
549
+ "ap-southeast-1",
550
+ "ap-southeast-2",
551
+ "us-central1"
552
+ ]
553
+ },
554
+ readRegions: {
555
+ type: "array",
556
+ description: "Optionally, add additional regions to read from. More regions will incur higher costs.",
557
+ items: {
558
+ type: "string",
559
+ enum: [
560
+ "us-east-1",
561
+ "us-east-2",
562
+ "us-west-1",
563
+ "us-west-2",
564
+ "eu-central-1",
565
+ "eu-west-1",
566
+ "eu-west-2",
567
+ "sa-east-1",
568
+ "ap-south-1",
569
+ "ap-northeast-1",
570
+ "ap-southeast-1",
571
+ "ap-southeast-2"
572
+ ]
573
+ }
574
+ },
575
+ eviction: {
576
+ type: "boolean",
577
+ description: "Optionally, enable Redis eviction. This will evict the least recently used keys in order to make space for new ones."
578
+ }
579
+ }
580
+ }
581
+ ]
582
+ },
583
+ postgres: {
584
+ oneOf: [
585
+ {
586
+ type: "null"
587
+ },
588
+ {
589
+ type: "object",
590
+ properties: {
591
+ envBindings: {
592
+ type: "object",
593
+ description: "Optionally, specify what environment variables the credentials will be bound to. For example: `{ url: 'POSTGRES_URL' }` will bind the `url` environment variable to the Postgres URL. If you don't specify any bindings, they will be bound to the POSTGRES_URL, POSTGRES_HOST, POSTGRES_PORT, POSTGRES_USER, POSTGRES_PASSWORD, and POSTGRES_DATABASE environment variables.",
594
+ additionalProperties: false,
595
+ properties: {
596
+ url: { type: "string" },
597
+ host: { type: "string" },
598
+ port: { type: "string" },
599
+ user: { type: "string" },
600
+ password: { type: "string" },
601
+ database: { type: "string" }
602
+ }
603
+ },
604
+ postgresVersion: {
605
+ type: "string",
606
+ description: "The version of Postgres to deploy.",
607
+ enum: ["17", "16", "15", "14"]
608
+ },
609
+ region: {
610
+ type: "string",
611
+ description: "The region to deploy the Postgres instance to.",
612
+ enum: [
613
+ "us-east-1",
614
+ "us-east-2",
615
+ "us-west-2",
616
+ "ap-southeast-1",
617
+ "ap-southeast-2",
618
+ "eu-central-1",
619
+ "eu-west-2",
620
+ "sa-east-1"
621
+ ]
622
+ }
623
+ }
624
+ }
625
+ ]
626
+ }
627
+ }
628
+ }
629
+ },
630
+ $defs: {
631
+ runtimes: {
632
+ type: "string",
633
+ enum: ["php-83", "php-82", "php-81", "php-80", "node-20", "node-18", "node-16", "bun-1"]
634
+ },
635
+ matchRequirements: {
636
+ description: "An array of requirements that are needed to match",
637
+ type: "array",
638
+ maxItems: 16,
639
+ items: {
640
+ anyOf: [
641
+ {
642
+ type: "object",
643
+ additionalProperties: false,
644
+ required: ["type", "value"],
645
+ properties: {
646
+ type: {
647
+ description: "The type of request element to check",
648
+ type: "string",
649
+ enum: ["host"]
650
+ },
651
+ value: {
652
+ description: "A regular expression used to match the value. Named groups can be used in the destination",
653
+ type: "string",
654
+ maxLength: 4096
655
+ }
656
+ }
657
+ },
658
+ {
659
+ type: "object",
660
+ additionalProperties: false,
661
+ required: ["type", "key"],
662
+ properties: {
663
+ type: {
664
+ description: "The type of request element to check",
665
+ type: "string",
666
+ enum: ["header", "cookie", "query"]
667
+ },
668
+ key: {
669
+ description: "The name of the element contained in the particular type",
670
+ type: "string",
671
+ maxLength: 4096
672
+ },
673
+ value: {
674
+ description: "A regular expression used to match the value. Named groups can be used in the destination",
675
+ type: "string",
676
+ maxLength: 4096
677
+ }
678
+ }
679
+ }
680
+ ]
681
+ }
682
+ }
683
+ }
684
+ };
685
+
352
686
  // src/parse-config.ts
353
- var schemaV4 = JSON.parse(fs5.readFileSync(path4.join(__dirname, "./v4/schema.json"), "utf8"));
354
687
  var parseConfig = async (filePath, projectFolder) => {
355
688
  const parsed = await parseRawConfig(filePath);
356
689
  const version = parsed.version;
@@ -358,7 +691,7 @@ var parseConfig = async (filePath, projectFolder) => {
358
691
  /*1: schemaV1,
359
692
  2: schemaV2,
360
693
  3: schemaV3,*/
361
- 4: schemaV4
694
+ 4: schema_default
362
695
  };
363
696
  const relativePath = filePath.replace("/tmp/unzipped/", "");
364
697
  const schema = schemaMap[version];
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/find-config.ts","../src/parse-config.ts","../src/build-output-v3/parse.ts","../src/parse-raw-config.ts","../src/v4/parse.ts","../src/regions.ts","../src/runtime.ts"],"sourcesContent":["import fs from 'fs';\nimport path from 'path';\n\nexport const ALLOWED_CONFIG_NAMES = ['gigadrive.yaml', 'gigadrive.yml', 'nebula.yaml', 'nebula.yml', 'nebula.json'];\n\n/**\n * Finds a config file in the project folder.\n * @param projectFolder The folder to search for a config file in.\n * @returns The path to the config file, or null if no config file is found.\n */\nexport const findConfig = (projectFolder: string): string | null => {\n for (const name of ALLOWED_CONFIG_NAMES) {\n const filePath = path.join(projectFolder, name);\n if (fs.existsSync(filePath)) {\n return filePath;\n }\n }\n return null;\n};\n","import Ajv from 'ajv';\nimport addFormats from 'ajv-formats';\nimport fs from 'fs';\nimport path from 'path';\nimport { parseVercelBuildOutputV3 } from './build-output-v3/parse';\nimport type { NormalizedConfig } from './normalized-config';\nimport { parseRawConfig } from './parse-raw-config';\nimport { parseConfigV4 } from './v4/parse';\n\nconst schemaV4 = JSON.parse(fs.readFileSync(path.join(__dirname, './v4/schema.json'), 'utf8'));\n\nexport const parseConfig = async (filePath: string, projectFolder: string): Promise<NormalizedConfig> => {\n const parsed = await parseRawConfig(filePath);\n const version = parsed.version;\n\n const schemaMap: Record<number, object> = {\n /*1: schemaV1,\n 2: schemaV2,\n 3: schemaV3,*/\n 4: schemaV4,\n };\n\n // build the path to the config file relative to the project root (strip /tmp/unzipped prefix)\n const relativePath = filePath.replace('/tmp/unzipped/', '');\n\n const schema = schemaMap[version];\n\n if (!schema) {\n throw new Error(`Config file at ${relativePath} has an unsupported version: ${version}`);\n }\n\n // validate the config file\n const ajv = new Ajv();\n addFormats(ajv);\n\n const validate = ajv.compile(schema);\n\n const valid = validate(parsed);\n if (!valid) {\n throw new Error(`Config file at ${relativePath} is invalid: ${ajv.errorsText(validate.errors)}`);\n }\n\n // @ts-ignore\n const parserMap: Record<number, (config, projectFolder) => Promise<NormalizedConfig>> = {\n /*1: parseConfigV1,\n 2: parseConfigV2,\n 3: parseConfigV3,*/\n 4: parseConfigV4,\n };\n\n let parseResult: NormalizedConfig = await parserMap[version](parsed, projectFolder);\n\n // TODO: apply transformers\n parseResult = await parseVercelBuildOutputV3(parseResult, projectFolder);\n\n // if the config does not resolve to any resources, warn the user\n if (parseResult.entrypoints.length === 0 && (parseResult.assets?.paths?.length || 0) === 0) {\n parseResult.warnings.push('The current project does not have any functions or assets to deploy.');\n } else if (\n parseResult.entrypoints.length === 0 &&\n (parseResult.assets?.paths?.length || 0) === 0 &&\n parseResult.routes.length === 0\n ) {\n parseResult.errors.push(\n 'The current project config does not resolve to any functions, assets or routes and can not be deployed.'\n );\n }\n\n return parseResult;\n};\n","import { getFilesForPattern } from '@gigadrive/build-utils';\nimport fs from 'fs';\nimport path from 'path';\nimport { type Config, type Route, type ServerlessFunctionConfig } from '.';\nimport type {\n NormalizedConfig,\n NormalizedConfigRoute,\n NormalizedConfigRouteHandler,\n NormalizedConfigRouteMethod,\n} from '../normalized-config';\nimport { parseRawConfig } from '../parse-raw-config';\nimport type { Region } from '../regions';\nimport type { Runtime } from '../runtime';\n\nconst configPath = '.vercel/output/config.json';\nconst functionConfigsPattern = '.vercel/output/functions/*.func/.vc-config.json';\n\n/**\n * Transforms a parsed config file using Vercel's Build Output API v3\n * @param parseResult The result of parsing the existing config file\n * @param projectFolder The path to the project folder\n * @returns\n */\nexport const parseVercelBuildOutputV3 = async (\n parseResult: NormalizedConfig,\n projectFolder: string\n): Promise<NormalizedConfig> => {\n // read config file\n const config = await readConfigFile<Config>(path.join(projectFolder, configPath));\n\n if (!config || config.version < 3) {\n // TODO: Log error\n return parseResult;\n }\n\n // TODO: Routes\n // TODO: Images\n // TODO: Wildcards\n // TODO: Cache\n // TODO: Cron\n // TODO: Edge Functions\n // TODO: Prerender Functions\n\n await loadFunctions(config, parseResult, projectFolder);\n await loadAssetOverrides(config, parseResult);\n\n return parseResult;\n};\n\nconst loadAssetOverrides = async (config: Config, parseResult: NormalizedConfig) => {\n if (!parseResult.assets) {\n parseResult.assets = {\n paths: [],\n prefixToStrip: '',\n };\n }\n\n parseResult.assets.overrides = {\n ...(parseResult.assets.overrides ?? {}),\n ...config.overrides,\n };\n};\n\nexport const loadFunctions = async (config: Config, parseResult: NormalizedConfig, projectFolder: string) => {\n const functionConfigs = await getFilesForPattern(functionConfigsPattern, projectFolder);\n\n // console.debug('functionConfigs', functionConfigs);\n\n for (const functionConfigPath of functionConfigs) {\n const functionConfig = await readConfigFile<ServerlessFunctionConfig>(path.join(projectFolder, functionConfigPath));\n\n if (!functionConfig) {\n parseResult.errors.push(`Failed to read function config at ${functionConfigPath}`);\n continue;\n }\n\n const functionName: string = path.basename(path.dirname(functionConfigPath)).replace(/\\.func$/, '');\n const runtime = translateVercelRuntime(functionConfig.runtime);\n\n if (!runtime) {\n parseResult.errors.push(`Unsupported runtime for function ${functionName}: ${functionConfig.runtime}`);\n continue;\n }\n\n const functionDirectory = `.vercel/output/functions/${functionName}.func`;\n const handler = functionConfig.handler;\n const maxDuration = functionConfig.maxDuration;\n const memory = functionConfig.memory;\n\n // add regions and filter duplicates\n parseResult.regions = Array.from(\n new Set([\n ...(parseResult.regions ?? []),\n ...(functionConfig.regions ?? ['us-east-1']).map((r) => translateVercelRegion(r)),\n ])\n ) as Region[];\n\n const environmentVariables: Record<string, string> = {};\n\n const functionEnv = functionConfig.environment;\n\n if (functionEnv != null && typeof functionEnv === 'object') {\n for (const env of Object.values(functionEnv)) {\n for (const [key, value] of Object.entries(env)) {\n environmentVariables[key] = value;\n }\n }\n }\n\n const streaming: boolean = runtime == null || runtime.startsWith('node-') || runtime.startsWith('bun-');\n\n // translate filePathMap relative paths to absolute paths\n const filePathMap: Record<string, string> = {};\n for (const [key, value] of Object.entries(functionConfig.filePathMap ?? {})) {\n filePathMap[path.join(projectFolder, key)] = value;\n }\n\n parseResult.entrypoints.push({\n displayName: functionName,\n runtime,\n path: handler,\n memory: memory ?? 1024,\n maxDuration: maxDuration ?? 15,\n environmentVariables,\n streaming,\n package: {\n rootOverwrite: path.join(projectFolder, functionDirectory),\n filePathMap: filePathMap,\n },\n });\n\n const handlerType: NormalizedConfigRouteHandler = streaming\n ? 'SERVERLESS_FUNCTION_STREAMING'\n : 'SERVERLESS_FUNCTION';\n\n (\n [\n {\n path: `/${functionName}`,\n methods: ['ANY'],\n headers: {},\n destination: handler,\n handler: handlerType,\n },\n ...(config.routes\n ?.filter((r) => r.dest === `/${functionName}`)\n .map((r: Route) => ({\n path: r.src ?? `/${functionName}`,\n methods: ['ANY'] as NormalizedConfigRouteMethod[],\n headers: {},\n destination: handler,\n handler: handlerType,\n })) ?? []),\n ] as NormalizedConfigRoute[]\n ).forEach((route) => {\n parseResult.routes.push(route);\n });\n }\n};\n\nexport const readConfigFile = async <T>(configFilePath: string): Promise<T | null> => {\n if (!fs.existsSync(configFilePath)) {\n // skip vercel transformation if no vercel output exists\n return null;\n }\n\n const parsed = await parseRawConfig(configFilePath);\n\n return parsed as T;\n};\n\nexport const translateVercelRuntime = (runtime: string): Runtime | null => {\n switch (runtime) {\n case 'nodejs12.x':\n case 'nodejs14.x':\n case 'nodejs16.x':\n case 'nodejs18.x':\n return 'node-18';\n case 'nodejs20.x':\n case 'nodejs22.x': // TODO: Update when Lambda supports Node.js 22\n return 'node-20';\n default:\n return null;\n }\n};\n\n/**\n * @link https://vercel.com/docs/edge-network/regions#region-list\n */\nexport const translateVercelRegion = (region: string): string => {\n const regionMap: Record<string, string> = {\n arn1: 'eu-north-1',\n bom1: 'ap-south-1',\n cdg1: 'eu-west-3',\n cle1: 'us-east-2',\n cpt1: 'af-south-1',\n dub1: 'eu-west-1',\n fra1: 'eu-central-1',\n gru1: 'sa-east-1',\n hkg1: 'ap-east-1',\n hnd1: 'ap-northeast-1',\n iad1: 'us-east-1',\n icn1: 'ap-northeast-2',\n kix1: 'ap-northeast-3',\n lhr1: 'eu-west-2',\n pdx1: 'us-west-2',\n sfo1: 'us-west-1',\n sin1: 'ap-southeast-1',\n syd1: 'ap-southeast-2',\n };\n\n return regionMap[region.toLowerCase()] ?? 'us-east-1';\n};\n","import fs from 'fs';\nimport path from 'path';\nimport { parse as parseYaml } from 'yaml';\n\nexport const parseRawConfig = async (filePath: string): Promise<any> => {\n // check if the file exists\n if (!fs.existsSync(filePath)) {\n throw new Error(`Config file not found at ${filePath}`);\n }\n\n // read the file\n const fileContents = fs.readFileSync(filePath, 'utf8');\n\n if (fileContents.length === 0) {\n throw new Error(`Config file is empty at ${filePath}`);\n }\n\n // determine file type based on extension\n const fileExtension = path.extname(filePath).toLowerCase();\n\n // parse the file based on its extension\n let parsed;\n try {\n if (fileExtension === '.json') {\n parsed = JSON.parse(fileContents);\n } else if (['.yml', '.yaml'].includes(fileExtension)) {\n parsed = parseYaml(fileContents);\n } else {\n // Try to parse as YAML by default, which is more forgiving\n parsed = parseYaml(fileContents);\n }\n } catch (error) {\n throw new Error(\n `Failed to parse config file at ${filePath}: ${error instanceof Error ? error.message : 'Unknown error'}`\n );\n }\n\n if (parsed === undefined) {\n throw new Error(`Config file could not be parsed at ${filePath}`);\n }\n\n // check if the version is present\n if (typeof parsed.version !== 'number') {\n throw new Error(`Config file is missing version at ${filePath}`);\n }\n\n return parsed;\n};\n","import { getFilesForPattern } from '@gigadrive/build-utils';\nimport fs from 'fs';\nimport { minimatch } from 'minimatch';\nimport type { ConfigV4, ConfigV4FunctionSettings } from '.';\nimport type {\n NormalizedConfig,\n NormalizedConfigEntrypoint,\n NormalizedConfigRoute,\n NormalizedConfigRouteHandler,\n} from '../normalized-config';\nimport { AVAILABLE_REGIONS, type Region } from '../regions';\n\nexport const parseConfigV4 = async (config: ConfigV4, projectFolder: string): Promise<NormalizedConfig> => {\n const regions =\n config.regions?.includes('global') === true\n ? AVAILABLE_REGIONS\n : (config.regions?.filter((region) => region !== 'global') ?? ['global']);\n\n const populateAssetCache = config.populateAssetCache ?? false;\n const environmentVariables = config.env ?? {};\n const commands = config.build_commands ?? [];\n const entrypoints: NormalizedConfigEntrypoint[] = [];\n const errors: string[] = [];\n const warnings: string[] = [];\n\n if (config.functions != null) {\n for (const [path, func] of Object.entries(config.functions)) {\n const settings = getFunctionSettings(path, config);\n\n if (settings == null) {\n throw new Error(`Settings invalid for function at path '${path}'`);\n }\n\n (await getFilesForPattern(path, projectFolder, func.excludeFiles)).forEach((file) => {\n // check if file is already in entrypoints, or if the path has a definition other than this one that matches it exactly\n if (entrypoints.find((entrypoint) => entrypoint.path === file)) {\n return;\n }\n\n if (config.functions != null && Object.keys(config.functions).find((func) => func === file && func !== path)) {\n return;\n }\n\n entrypoints.push({\n path: file,\n runtime: settings.runtime ?? 'node-20',\n memory: settings.memory ?? 128,\n maxDuration: settings.max_duration ?? 30,\n schedule: func.schedule,\n symlinks: func.symlinks,\n streaming:\n settings.runtime == null || settings.runtime.startsWith('node-') || settings.runtime.startsWith('bun-'),\n });\n });\n }\n }\n\n const assets: string[] = [];\n\n if (config.assets != null) {\n // list all files in assets folder recursively\n\n const assetsPath = `${projectFolder}/${config.assets}`;\n\n if (fs.existsSync(assetsPath) && fs.statSync(assetsPath).isDirectory()) {\n // console.debug('---- ASSET DEBUG ----');\n // console.debug('projectFolder', fs.readdirSync(assetsPath, { recursive: true }));\n\n // find all files in assets folder using fs\n for (const asset of fs.readdirSync(`${projectFolder}/${config.assets}`, {\n recursive: true,\n })) {\n // if file is a directory, skip it\n if (fs.statSync(`${projectFolder}/${config.assets}/${asset}`).isDirectory()) {\n continue;\n }\n\n const disallowedExtensions = ['.htaccess', '.htpasswd'];\n\n const assetName = asset.toString();\n\n if (disallowedExtensions.some((ext) => assetName.toLowerCase().endsWith(ext.toLowerCase()))) {\n continue;\n }\n\n assets.push(`${config.assets}/${assetName}`);\n }\n }\n }\n\n const routes = config.routes ?? [];\n\n return {\n regions: regions as Region[],\n assets: {\n paths: assets.sort(),\n prefixToStrip: (config.assets ?? '') + '/',\n dynamicRoutes: true,\n populateCache: populateAssetCache,\n },\n environmentVariables,\n commands,\n entrypoints,\n errors,\n warnings,\n routes: routes.map((route) => {\n // check if the destination has a protocol, if so use REDIRECT handler\n const handler: NormalizedConfigRouteHandler =\n route.destination.toLowerCase().startsWith('http://') || route.destination.toLowerCase().startsWith('https://')\n ? route.redirect === true\n ? 'HTTP_REDIRECT'\n : 'HTTP_PROXY'\n : route.redirect === true\n ? 'HTTP_REDIRECT'\n : 'SERVERLESS_FUNCTION';\n\n return {\n path: route.source,\n destination: route.destination,\n handler,\n headers: route.headers ?? {},\n methods: route.methods ?? ['ANY'],\n positiveRequirements: route.has,\n negativeRequirements: route.missing,\n status: route.statusCode,\n } as NormalizedConfigRoute;\n }),\n };\n};\n\n/**\n * Gets the runtime, memory and max duration for a given path.\n * @param path\n * @param config\n * @returns The runtime, memory and max duration for the given path. Should return undefined when a path should not be deployed as a function.\n */\nexport const getFunctionSettings = (path: string, config: ConfigV4): ConfigV4FunctionSettings | undefined => {\n // functions don't have to state all their options.\n // some function definitions might be glob or regex patterns.\n // go through all function definitions, find those that match the path and merge them.\n\n let functionSettings: ConfigV4FunctionSettings | undefined;\n\n for (const [key, value] of Object.entries(config.functions ?? {})) {\n // make sure to check for both glob and regex patterns\n if (minimatch(path, key) || new RegExp(key).test(path)) {\n if (functionSettings == null) {\n functionSettings = {\n memory: 128,\n max_duration: 30,\n schedule: undefined,\n symlinks: undefined,\n excludeFiles: undefined,\n includeFiles: undefined,\n };\n }\n\n if (value.runtime != null) {\n functionSettings.runtime = value.runtime;\n }\n\n if (value.memory != null) {\n functionSettings.memory = value.memory;\n }\n\n if (value.max_duration != null) {\n functionSettings.max_duration = value.max_duration;\n }\n\n if (value.schedule != null) {\n functionSettings.schedule = value.schedule;\n }\n\n if (value.symlinks != null) {\n functionSettings.symlinks = value.symlinks;\n }\n\n if (value.excludeFiles != null) {\n functionSettings.excludeFiles = value.excludeFiles;\n }\n\n if (value.includeFiles != null) {\n functionSettings.includeFiles = value.includeFiles;\n }\n }\n }\n\n return functionSettings;\n};\n","// Define all available runtimes in a single array\nconst REGION_DEFINITIONS = [\n 'us-east-1',\n 'us-east-2',\n 'us-west-1',\n 'us-west-2',\n 'ap-south-1',\n 'ap-northeast-3',\n 'ap-northeast-2',\n 'ap-southeast-1',\n 'ap-southeast-2',\n 'ap-northeast-1',\n 'ca-central-1',\n 'eu-central-1',\n 'eu-west-1',\n 'eu-west-2',\n 'eu-west-3',\n 'eu-north-1',\n 'sa-east-1',\n] as const;\n\n// Generate the Runtime type from the array\nexport type Region = (typeof REGION_DEFINITIONS)[number];\n\n// Export the available runtimes\nexport const AVAILABLE_REGIONS: Region[] = [...REGION_DEFINITIONS];\n","// Define all available runtimes in a single array\nconst RUNTIME_DEFINITIONS = [\n 'php-84',\n 'php-83',\n 'php-81',\n 'node-22',\n 'node-20',\n 'node-18',\n 'node-16',\n 'bun-1',\n] as const;\n\n// Generate the Runtime type from the array\nexport type Runtime = (typeof RUNTIME_DEFINITIONS)[number];\n\n// Export the available runtimes\nexport const AVAILABLE_RUNTIMES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;;AKpEA,IAAM,sBAAsB;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAMO,IAAM,qBAAgC,CAAC,GAAG,mBAAmB;","names":["fs","path","fs","path","fs","path","path","fs","getFilesForPattern","fs","path","getFilesForPattern","func","fs","fs","path"]}
1
+ {"version":3,"sources":["../src/find-config.ts","../src/parse-config.ts","../src/build-output-v3/parse.ts","../src/parse-raw-config.ts","../src/v4/parse.ts","../src/regions.ts","../src/v4/schema.json","../src/runtime.ts"],"sourcesContent":["import fs from 'fs';\nimport path from 'path';\n\nexport const ALLOWED_CONFIG_NAMES = ['gigadrive.yaml', 'gigadrive.yml', 'nebula.yaml', 'nebula.yml', 'nebula.json'];\n\n/**\n * Finds a config file in the project folder.\n * @param projectFolder The folder to search for a config file in.\n * @returns The path to the config file, or null if no config file is found.\n */\nexport const findConfig = (projectFolder: string): string | null => {\n for (const name of ALLOWED_CONFIG_NAMES) {\n const filePath = path.join(projectFolder, name);\n if (fs.existsSync(filePath)) {\n return filePath;\n }\n }\n return null;\n};\n","import Ajv from 'ajv';\nimport addFormats from 'ajv-formats';\nimport { parseVercelBuildOutputV3 } from './build-output-v3/parse';\nimport type { NormalizedConfig } from './normalized-config';\nimport { parseRawConfig } from './parse-raw-config';\nimport { parseConfigV4 } from './v4/parse';\nimport schemaV4 from './v4/schema.json';\n\nexport const parseConfig = async (filePath: string, projectFolder: string): Promise<NormalizedConfig> => {\n const parsed = await parseRawConfig(filePath);\n const version = parsed.version;\n\n const schemaMap: Record<number, object> = {\n /*1: schemaV1,\n 2: schemaV2,\n 3: schemaV3,*/\n 4: schemaV4,\n };\n\n // build the path to the config file relative to the project root (strip /tmp/unzipped prefix)\n const relativePath = filePath.replace('/tmp/unzipped/', '');\n\n const schema = schemaMap[version];\n\n if (!schema) {\n throw new Error(`Config file at ${relativePath} has an unsupported version: ${version}`);\n }\n\n // validate the config file\n const ajv = new Ajv();\n addFormats(ajv);\n\n const validate = ajv.compile(schema);\n\n const valid = validate(parsed);\n if (!valid) {\n throw new Error(`Config file at ${relativePath} is invalid: ${ajv.errorsText(validate.errors)}`);\n }\n\n // @ts-ignore\n const parserMap: Record<number, (config, projectFolder) => Promise<NormalizedConfig>> = {\n /*1: parseConfigV1,\n 2: parseConfigV2,\n 3: parseConfigV3,*/\n 4: parseConfigV4,\n };\n\n let parseResult: NormalizedConfig = await parserMap[version](parsed, projectFolder);\n\n // TODO: apply transformers\n parseResult = await parseVercelBuildOutputV3(parseResult, projectFolder);\n\n // if the config does not resolve to any resources, warn the user\n if (parseResult.entrypoints.length === 0 && (parseResult.assets?.paths?.length || 0) === 0) {\n parseResult.warnings.push('The current project does not have any functions or assets to deploy.');\n } else if (\n parseResult.entrypoints.length === 0 &&\n (parseResult.assets?.paths?.length || 0) === 0 &&\n parseResult.routes.length === 0\n ) {\n parseResult.errors.push(\n 'The current project config does not resolve to any functions, assets or routes and can not be deployed.'\n );\n }\n\n return parseResult;\n};\n","import { getFilesForPattern } from '@gigadrive/build-utils';\nimport fs from 'fs';\nimport path from 'path';\nimport { type Config, type Route, type ServerlessFunctionConfig } from '.';\nimport type {\n NormalizedConfig,\n NormalizedConfigRoute,\n NormalizedConfigRouteHandler,\n NormalizedConfigRouteMethod,\n} from '../normalized-config';\nimport { parseRawConfig } from '../parse-raw-config';\nimport type { Region } from '../regions';\nimport type { Runtime } from '../runtime';\n\nconst configPath = '.vercel/output/config.json';\nconst functionConfigsPattern = '.vercel/output/functions/*.func/.vc-config.json';\n\n/**\n * Transforms a parsed config file using Vercel's Build Output API v3\n * @param parseResult The result of parsing the existing config file\n * @param projectFolder The path to the project folder\n * @returns\n */\nexport const parseVercelBuildOutputV3 = async (\n parseResult: NormalizedConfig,\n projectFolder: string\n): Promise<NormalizedConfig> => {\n // read config file\n const config = await readConfigFile<Config>(path.join(projectFolder, configPath));\n\n if (!config || config.version < 3) {\n // TODO: Log error\n return parseResult;\n }\n\n // TODO: Routes\n // TODO: Images\n // TODO: Wildcards\n // TODO: Cache\n // TODO: Cron\n // TODO: Edge Functions\n // TODO: Prerender Functions\n\n await loadFunctions(config, parseResult, projectFolder);\n await loadAssetOverrides(config, parseResult);\n\n return parseResult;\n};\n\nconst loadAssetOverrides = async (config: Config, parseResult: NormalizedConfig) => {\n if (!parseResult.assets) {\n parseResult.assets = {\n paths: [],\n prefixToStrip: '',\n };\n }\n\n parseResult.assets.overrides = {\n ...(parseResult.assets.overrides ?? {}),\n ...config.overrides,\n };\n};\n\nexport const loadFunctions = async (config: Config, parseResult: NormalizedConfig, projectFolder: string) => {\n const functionConfigs = await getFilesForPattern(functionConfigsPattern, projectFolder);\n\n // console.debug('functionConfigs', functionConfigs);\n\n for (const functionConfigPath of functionConfigs) {\n const functionConfig = await readConfigFile<ServerlessFunctionConfig>(path.join(projectFolder, functionConfigPath));\n\n if (!functionConfig) {\n parseResult.errors.push(`Failed to read function config at ${functionConfigPath}`);\n continue;\n }\n\n const functionName: string = path.basename(path.dirname(functionConfigPath)).replace(/\\.func$/, '');\n const runtime = translateVercelRuntime(functionConfig.runtime);\n\n if (!runtime) {\n parseResult.errors.push(`Unsupported runtime for function ${functionName}: ${functionConfig.runtime}`);\n continue;\n }\n\n const functionDirectory = `.vercel/output/functions/${functionName}.func`;\n const handler = functionConfig.handler;\n const maxDuration = functionConfig.maxDuration;\n const memory = functionConfig.memory;\n\n // add regions and filter duplicates\n parseResult.regions = Array.from(\n new Set([\n ...(parseResult.regions ?? []),\n ...(functionConfig.regions ?? ['us-east-1']).map((r) => translateVercelRegion(r)),\n ])\n ) as Region[];\n\n const environmentVariables: Record<string, string> = {};\n\n const functionEnv = functionConfig.environment;\n\n if (functionEnv != null && typeof functionEnv === 'object') {\n for (const env of Object.values(functionEnv)) {\n for (const [key, value] of Object.entries(env)) {\n environmentVariables[key] = value;\n }\n }\n }\n\n const streaming: boolean = runtime == null || runtime.startsWith('node-') || runtime.startsWith('bun-');\n\n // translate filePathMap relative paths to absolute paths\n const filePathMap: Record<string, string> = {};\n for (const [key, value] of Object.entries(functionConfig.filePathMap ?? {})) {\n filePathMap[path.join(projectFolder, key)] = value;\n }\n\n parseResult.entrypoints.push({\n displayName: functionName,\n runtime,\n path: handler,\n memory: memory ?? 1024,\n maxDuration: maxDuration ?? 15,\n environmentVariables,\n streaming,\n package: {\n rootOverwrite: path.join(projectFolder, functionDirectory),\n filePathMap: filePathMap,\n },\n });\n\n const handlerType: NormalizedConfigRouteHandler = streaming\n ? 'SERVERLESS_FUNCTION_STREAMING'\n : 'SERVERLESS_FUNCTION';\n\n (\n [\n {\n path: `/${functionName}`,\n methods: ['ANY'],\n headers: {},\n destination: handler,\n handler: handlerType,\n },\n ...(config.routes\n ?.filter((r) => r.dest === `/${functionName}`)\n .map((r: Route) => ({\n path: r.src ?? `/${functionName}`,\n methods: ['ANY'] as NormalizedConfigRouteMethod[],\n headers: {},\n destination: handler,\n handler: handlerType,\n })) ?? []),\n ] as NormalizedConfigRoute[]\n ).forEach((route) => {\n parseResult.routes.push(route);\n });\n }\n};\n\nexport const readConfigFile = async <T>(configFilePath: string): Promise<T | null> => {\n if (!fs.existsSync(configFilePath)) {\n // skip vercel transformation if no vercel output exists\n return null;\n }\n\n const parsed = await parseRawConfig(configFilePath);\n\n return parsed as T;\n};\n\nexport const translateVercelRuntime = (runtime: string): Runtime | null => {\n switch (runtime) {\n case 'nodejs12.x':\n case 'nodejs14.x':\n case 'nodejs16.x':\n case 'nodejs18.x':\n return 'node-18';\n case 'nodejs20.x':\n case 'nodejs22.x': // TODO: Update when Lambda supports Node.js 22\n return 'node-20';\n default:\n return null;\n }\n};\n\n/**\n * @link https://vercel.com/docs/edge-network/regions#region-list\n */\nexport const translateVercelRegion = (region: string): string => {\n const regionMap: Record<string, string> = {\n arn1: 'eu-north-1',\n bom1: 'ap-south-1',\n cdg1: 'eu-west-3',\n cle1: 'us-east-2',\n cpt1: 'af-south-1',\n dub1: 'eu-west-1',\n fra1: 'eu-central-1',\n gru1: 'sa-east-1',\n hkg1: 'ap-east-1',\n hnd1: 'ap-northeast-1',\n iad1: 'us-east-1',\n icn1: 'ap-northeast-2',\n kix1: 'ap-northeast-3',\n lhr1: 'eu-west-2',\n pdx1: 'us-west-2',\n sfo1: 'us-west-1',\n sin1: 'ap-southeast-1',\n syd1: 'ap-southeast-2',\n };\n\n return regionMap[region.toLowerCase()] ?? 'us-east-1';\n};\n","import fs from 'fs';\nimport path from 'path';\nimport { parse as parseYaml } from 'yaml';\n\nexport const parseRawConfig = async (filePath: string): Promise<any> => {\n // check if the file exists\n if (!fs.existsSync(filePath)) {\n throw new Error(`Config file not found at ${filePath}`);\n }\n\n // read the file\n const fileContents = fs.readFileSync(filePath, 'utf8');\n\n if (fileContents.length === 0) {\n throw new Error(`Config file is empty at ${filePath}`);\n }\n\n // determine file type based on extension\n const fileExtension = path.extname(filePath).toLowerCase();\n\n // parse the file based on its extension\n let parsed;\n try {\n if (fileExtension === '.json') {\n parsed = JSON.parse(fileContents);\n } else if (['.yml', '.yaml'].includes(fileExtension)) {\n parsed = parseYaml(fileContents);\n } else {\n // Try to parse as YAML by default, which is more forgiving\n parsed = parseYaml(fileContents);\n }\n } catch (error) {\n throw new Error(\n `Failed to parse config file at ${filePath}: ${error instanceof Error ? error.message : 'Unknown error'}`\n );\n }\n\n if (parsed === undefined) {\n throw new Error(`Config file could not be parsed at ${filePath}`);\n }\n\n // check if the version is present\n if (typeof parsed.version !== 'number') {\n throw new Error(`Config file is missing version at ${filePath}`);\n }\n\n return parsed;\n};\n","import { getFilesForPattern } from '@gigadrive/build-utils';\nimport fs from 'fs';\nimport { minimatch } from 'minimatch';\nimport type { ConfigV4, ConfigV4FunctionSettings } from '.';\nimport type {\n NormalizedConfig,\n NormalizedConfigEntrypoint,\n NormalizedConfigRoute,\n NormalizedConfigRouteHandler,\n} from '../normalized-config';\nimport { AVAILABLE_REGIONS, type Region } from '../regions';\n\nexport const parseConfigV4 = async (config: ConfigV4, projectFolder: string): Promise<NormalizedConfig> => {\n const regions =\n config.regions?.includes('global') === true\n ? AVAILABLE_REGIONS\n : (config.regions?.filter((region) => region !== 'global') ?? ['global']);\n\n const populateAssetCache = config.populateAssetCache ?? false;\n const environmentVariables = config.env ?? {};\n const commands = config.build_commands ?? [];\n const entrypoints: NormalizedConfigEntrypoint[] = [];\n const errors: string[] = [];\n const warnings: string[] = [];\n\n if (config.functions != null) {\n for (const [path, func] of Object.entries(config.functions)) {\n const settings = getFunctionSettings(path, config);\n\n if (settings == null) {\n throw new Error(`Settings invalid for function at path '${path}'`);\n }\n\n (await getFilesForPattern(path, projectFolder, func.excludeFiles)).forEach((file) => {\n // check if file is already in entrypoints, or if the path has a definition other than this one that matches it exactly\n if (entrypoints.find((entrypoint) => entrypoint.path === file)) {\n return;\n }\n\n if (config.functions != null && Object.keys(config.functions).find((func) => func === file && func !== path)) {\n return;\n }\n\n entrypoints.push({\n path: file,\n runtime: settings.runtime ?? 'node-20',\n memory: settings.memory ?? 128,\n maxDuration: settings.max_duration ?? 30,\n schedule: func.schedule,\n symlinks: func.symlinks,\n streaming:\n settings.runtime == null || settings.runtime.startsWith('node-') || settings.runtime.startsWith('bun-'),\n });\n });\n }\n }\n\n const assets: string[] = [];\n\n if (config.assets != null) {\n // list all files in assets folder recursively\n\n const assetsPath = `${projectFolder}/${config.assets}`;\n\n if (fs.existsSync(assetsPath) && fs.statSync(assetsPath).isDirectory()) {\n // console.debug('---- ASSET DEBUG ----');\n // console.debug('projectFolder', fs.readdirSync(assetsPath, { recursive: true }));\n\n // find all files in assets folder using fs\n for (const asset of fs.readdirSync(`${projectFolder}/${config.assets}`, {\n recursive: true,\n })) {\n // if file is a directory, skip it\n if (fs.statSync(`${projectFolder}/${config.assets}/${asset}`).isDirectory()) {\n continue;\n }\n\n const disallowedExtensions = ['.htaccess', '.htpasswd'];\n\n const assetName = asset.toString();\n\n if (disallowedExtensions.some((ext) => assetName.toLowerCase().endsWith(ext.toLowerCase()))) {\n continue;\n }\n\n assets.push(`${config.assets}/${assetName}`);\n }\n }\n }\n\n const routes = config.routes ?? [];\n\n return {\n regions: regions as Region[],\n assets: {\n paths: assets.sort(),\n prefixToStrip: (config.assets ?? '') + '/',\n dynamicRoutes: true,\n populateCache: populateAssetCache,\n },\n environmentVariables,\n commands,\n entrypoints,\n errors,\n warnings,\n routes: routes.map((route) => {\n // check if the destination has a protocol, if so use REDIRECT handler\n const handler: NormalizedConfigRouteHandler =\n route.destination.toLowerCase().startsWith('http://') || route.destination.toLowerCase().startsWith('https://')\n ? route.redirect === true\n ? 'HTTP_REDIRECT'\n : 'HTTP_PROXY'\n : route.redirect === true\n ? 'HTTP_REDIRECT'\n : 'SERVERLESS_FUNCTION';\n\n return {\n path: route.source,\n destination: route.destination,\n handler,\n headers: route.headers ?? {},\n methods: route.methods ?? ['ANY'],\n positiveRequirements: route.has,\n negativeRequirements: route.missing,\n status: route.statusCode,\n } as NormalizedConfigRoute;\n }),\n };\n};\n\n/**\n * Gets the runtime, memory and max duration for a given path.\n * @param path\n * @param config\n * @returns The runtime, memory and max duration for the given path. Should return undefined when a path should not be deployed as a function.\n */\nexport const getFunctionSettings = (path: string, config: ConfigV4): ConfigV4FunctionSettings | undefined => {\n // functions don't have to state all their options.\n // some function definitions might be glob or regex patterns.\n // go through all function definitions, find those that match the path and merge them.\n\n let functionSettings: ConfigV4FunctionSettings | undefined;\n\n for (const [key, value] of Object.entries(config.functions ?? {})) {\n // make sure to check for both glob and regex patterns\n if (minimatch(path, key) || new RegExp(key).test(path)) {\n if (functionSettings == null) {\n functionSettings = {\n memory: 128,\n max_duration: 30,\n schedule: undefined,\n symlinks: undefined,\n excludeFiles: undefined,\n includeFiles: undefined,\n };\n }\n\n if (value.runtime != null) {\n functionSettings.runtime = value.runtime;\n }\n\n if (value.memory != null) {\n functionSettings.memory = value.memory;\n }\n\n if (value.max_duration != null) {\n functionSettings.max_duration = value.max_duration;\n }\n\n if (value.schedule != null) {\n functionSettings.schedule = value.schedule;\n }\n\n if (value.symlinks != null) {\n functionSettings.symlinks = value.symlinks;\n }\n\n if (value.excludeFiles != null) {\n functionSettings.excludeFiles = value.excludeFiles;\n }\n\n if (value.includeFiles != null) {\n functionSettings.includeFiles = value.includeFiles;\n }\n }\n }\n\n return functionSettings;\n};\n","// Define all available runtimes in a single array\nconst REGION_DEFINITIONS = [\n 'us-east-1',\n 'us-east-2',\n 'us-west-1',\n 'us-west-2',\n 'ap-south-1',\n 'ap-northeast-3',\n 'ap-northeast-2',\n 'ap-southeast-1',\n 'ap-southeast-2',\n 'ap-northeast-1',\n 'ca-central-1',\n 'eu-central-1',\n 'eu-west-1',\n 'eu-west-2',\n 'eu-west-3',\n 'eu-north-1',\n 'sa-east-1',\n] as const;\n\n// Generate the Runtime type from the array\nexport type Region = (typeof REGION_DEFINITIONS)[number];\n\n// Export the available runtimes\nexport const AVAILABLE_REGIONS: Region[] = [...REGION_DEFINITIONS];\n","{\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"title\": \"Config V4\",\n \"description\": \"Configuration schema for version 4\",\n \"type\": \"object\",\n \"required\": [\"version\"],\n \"properties\": {\n \"version\": {\n \"type\": \"integer\",\n \"enum\": [4],\n \"description\": \"The version of the configuration file\"\n },\n \"presets\": {\n \"type\": [\"array\", \"null\"],\n \"items\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"description\": \"A list of presets to apply to the project. Each preset will be applied in order.\"\n },\n \"assets\": {\n \"type\": [\"string\", \"null\"],\n \"description\": \"The folder which holds the assets to be deployed to the edge. Defaults to none.\"\n },\n \"populateAssetCache\": {\n \"type\": [\"boolean\", \"null\"],\n \"description\": \"If true, the assets will be cached at the edge during deployment. This may increase the deployment time, depending on the size of the assets. Defaults to false.\"\n },\n \"regions\": {\n \"type\": [\"array\", \"null\"],\n \"description\": \"The regions to which the project will be deployed. Use \\\"global\\\" to deploy to all regions. More regions will incur higher costs.\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"build_commands\": {\n \"type\": [\"array\", \"null\"],\n \"description\": \"The commands to run to build the project. For example, `bun install` or `npm install`.\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"functions\": {\n \"type\": [\"object\", \"null\"],\n \"description\": \"The serverless functions to deploy.\",\n \"additionalProperties\": {\n \"type\": \"object\",\n \"properties\": {\n \"memory\": {\n \"type\": \"number\",\n \"description\": \"The memory in MB to allocate to the function. Defaults to 128.\",\n \"maximum\": 3009,\n \"minimum\": 128\n },\n \"max_duration\": {\n \"type\": \"number\",\n \"description\": \"The max duration in seconds for the function after which it will be terminated. Defaults to 30.\",\n \"maximum\": 900,\n \"minimum\": 1\n },\n \"runtime\": {\n \"$ref\": \"#/$defs/runtimes\",\n \"description\": \"The runtime to use for the function.\"\n },\n \"schedule\": {\n \"type\": \"string\",\n \"description\": \"An expression to schedule the function to run at specific times.\",\n \"pattern\": \"^(?:rate[(](?:(?:1[ ]+(hour|minute|day))|(?:[0-9]+[ ]+(hours|minutes|days)))[)])|(?:cron[(](?:(?:(?:[0-5]?[0-9])|[*])(?:(?:[-](?:(?:[0-5]?[0-9])|[*]))|(?:[/][0-9]+))?(?:[,](?:(?:[0-5]?[0-9])|[*])(?:(?:[-](?:(?:[0-5]?[0-9])|[*]))|(?:[/][0-9]+))?)*)[ ]+(?:(?:(?:[0-2]?[0-9])|[*])(?:(?:[-](?:(?:[0-2]?[0-9])|[*]))|(?:[/][0-9]+))?(?:[,](?:(?:[0-2]?[0-9])|[*])(?:(?:[-](?:(?:[0-2]?[0-9])|[*]))|(?:[/][0-9]+))?)*)[ ]+(?:(?:[?][ ]+(?:(?:(?:[1]?[0-9])|(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)|[*])(?:(?:[-](?:(?:[1]?[0-9])|(?:JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)|[*])(?:[/][0-9]+)?)|(?:[/][0-9]+))?(?:[,](?:(?:[1]?[0-9])|(?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9]+))?)*)[ ]+[?]))[ ]+(?:(?:(?:[12][0-9]{3})|[*])(?:(?:[-](?:(?:[12][0-9]{3})|[*]))|(?:[/][0-9]+))?(?:[,](?:(?:[12][0-9]{3})|[*])(?:(?:[-](?:(?:[12][0-9]{3})|[*]))|(?:[/][0-9]+))?)*)[)])$\"\n },\n \"symlinks\": {\n \"type\": \"object\",\n \"description\": \"A list of symbolic links to create in the function's package.\",\n \"maxProperties\": 100,\n \"minProperties\": 1,\n \"patternProperties\": {\n \"^.{1,256}$\": {\n \"type\": \"string\",\n \"maxLength\": 256\n }\n },\n \"additionalProperties\": false\n },\n \"excludeFiles\": {\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"array\", \"items\": { \"type\": \"string\" } }],\n \"description\": \"A glob pattern to match files that should be excluded from your Serverless Function. If you're using a Community Runtime, the behavior might vary.\"\n },\n \"includeFiles\": {\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"array\", \"items\": { \"type\": \"string\" } }],\n \"description\": \"A glob pattern to match files that should be included in your Serverless Function. If you're using a Community Runtime, the behavior might vary.\"\n }\n }\n }\n },\n \"env\": {\n \"type\": \"object\",\n \"maxProperties\": 100,\n \"minProperties\": 0,\n \"patternProperties\": {\n \".+\": {\n \"maxLength\": 65536,\n \"minLength\": 0,\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false,\n \"description\": \"Additional environment variables to set during runtime and build.\"\n },\n \"routes\": {\n \"type\": [\"array\", \"null\"],\n \"description\": \"A list of route definitions.\",\n \"maxItems\": 1024,\n \"items\": {\n \"type\": \"object\",\n \"required\": [\"source\", \"destination\"],\n \"properties\": {\n \"source\": {\n \"description\": \"A pattern that matches each incoming pathname (excluding querystring).\",\n \"type\": \"string\",\n \"maxLength\": 4096\n },\n \"destination\": {\n \"description\": \"An absolute pathname to an existing resource or an external URL.\",\n \"type\": \"string\",\n \"maxLength\": 4096\n },\n \"has\": {\n \"$ref\": \"#/$defs/matchRequirements\"\n },\n \"missing\": {\n \"$ref\": \"#/$defs/matchRequirements\"\n },\n \"statusCode\": {\n \"description\": \"An optional integer to override the status code of the response.\",\n \"type\": \"integer\",\n \"minimum\": 100,\n \"maximum\": 999\n },\n \"redirect\": {\n \"type\": \"boolean\",\n \"description\": \"An optional boolean to force a redirect response.\"\n },\n \"methods\": {\n \"type\": \"array\",\n \"description\": \"The HTTP methods to match for the route. Defaults to all methods.\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\"ANY\", \"GET\", \"POST\", \"PUT\", \"PATCH\", \"DELETE\", \"HEAD\", \"OPTIONS\"]\n }\n },\n \"headers\": {\n \"type\": \"object\",\n \"description\": \"Additional headers to add to the response.\",\n \"additionalProperties\": {\n \"type\": \"string\"\n }\n }\n }\n }\n },\n \"services\": {\n \"type\": \"object\",\n \"description\": \"Optionally, specify additional services like databases to deploy.\",\n \"properties\": {\n \"redis\": {\n \"oneOf\": [\n {\n \"type\": \"null\"\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"envBindings\": {\n \"type\": \"object\",\n \"description\": \"Optionally, specify what environment variables the credentials will be bound to. For example: `{ url: 'REDIS_URL' }` will bind the `url` environment variable to the Redis URL. If you don't specify any bindings, they will be bound to the REDIS_URL, REDIS_HOST, REDIS_PORT, REDIS_PASSWORD, REDIS_DB, and REDIS_SSL environment variables.\",\n \"additionalProperties\": false,\n \"properties\": {\n \"url\": { \"type\": \"string\" },\n \"host\": { \"type\": \"string\" },\n \"port\": { \"type\": \"string\" },\n \"password\": { \"type\": \"string\" },\n \"db\": { \"type\": \"string\" },\n \"ssl\": { \"type\": \"string\" }\n }\n },\n \"primaryRegion\": {\n \"type\": \"string\",\n \"description\": \"The primary region to deploy the Redis instance to.\",\n \"enum\": [\n \"us-east-1\",\n \"us-east-2\",\n \"us-west-1\",\n \"us-west-2\",\n \"eu-central-1\",\n \"eu-west-1\",\n \"eu-west-2\",\n \"sa-east-1\",\n \"ap-south-1\",\n \"ap-northeast-1\",\n \"ap-southeast-1\",\n \"ap-southeast-2\",\n \"us-central1\"\n ]\n },\n \"readRegions\": {\n \"type\": \"array\",\n \"description\": \"Optionally, add additional regions to read from. More regions will incur higher costs.\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"us-east-1\",\n \"us-east-2\",\n \"us-west-1\",\n \"us-west-2\",\n \"eu-central-1\",\n \"eu-west-1\",\n \"eu-west-2\",\n \"sa-east-1\",\n \"ap-south-1\",\n \"ap-northeast-1\",\n \"ap-southeast-1\",\n \"ap-southeast-2\"\n ]\n }\n },\n \"eviction\": {\n \"type\": \"boolean\",\n \"description\": \"Optionally, enable Redis eviction. This will evict the least recently used keys in order to make space for new ones.\"\n }\n }\n }\n ]\n },\n \"postgres\": {\n \"oneOf\": [\n {\n \"type\": \"null\"\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"envBindings\": {\n \"type\": \"object\",\n \"description\": \"Optionally, specify what environment variables the credentials will be bound to. For example: `{ url: 'POSTGRES_URL' }` will bind the `url` environment variable to the Postgres URL. If you don't specify any bindings, they will be bound to the POSTGRES_URL, POSTGRES_HOST, POSTGRES_PORT, POSTGRES_USER, POSTGRES_PASSWORD, and POSTGRES_DATABASE environment variables.\",\n \"additionalProperties\": false,\n \"properties\": {\n \"url\": { \"type\": \"string\" },\n \"host\": { \"type\": \"string\" },\n \"port\": { \"type\": \"string\" },\n \"user\": { \"type\": \"string\" },\n \"password\": { \"type\": \"string\" },\n \"database\": { \"type\": \"string\" }\n }\n },\n \"postgresVersion\": {\n \"type\": \"string\",\n \"description\": \"The version of Postgres to deploy.\",\n \"enum\": [\"17\", \"16\", \"15\", \"14\"]\n },\n \"region\": {\n \"type\": \"string\",\n \"description\": \"The region to deploy the Postgres instance to.\",\n \"enum\": [\n \"us-east-1\",\n \"us-east-2\",\n \"us-west-2\",\n \"ap-southeast-1\",\n \"ap-southeast-2\",\n \"eu-central-1\",\n \"eu-west-2\",\n \"sa-east-1\"\n ]\n }\n }\n }\n ]\n }\n }\n }\n },\n \"$defs\": {\n \"runtimes\": {\n \"type\": \"string\",\n \"enum\": [\"php-83\", \"php-82\", \"php-81\", \"php-80\", \"node-20\", \"node-18\", \"node-16\", \"bun-1\"]\n },\n \"matchRequirements\": {\n \"description\": \"An array of requirements that are needed to match\",\n \"type\": \"array\",\n \"maxItems\": 16,\n \"items\": {\n \"anyOf\": [\n {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\"type\", \"value\"],\n \"properties\": {\n \"type\": {\n \"description\": \"The type of request element to check\",\n \"type\": \"string\",\n \"enum\": [\"host\"]\n },\n \"value\": {\n \"description\": \"A regular expression used to match the value. Named groups can be used in the destination\",\n \"type\": \"string\",\n \"maxLength\": 4096\n }\n }\n },\n {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\"type\", \"key\"],\n \"properties\": {\n \"type\": {\n \"description\": \"The type of request element to check\",\n \"type\": \"string\",\n \"enum\": [\"header\", \"cookie\", \"query\"]\n },\n \"key\": {\n \"description\": \"The name of the element contained in the particular type\",\n \"type\": \"string\",\n \"maxLength\": 4096\n },\n \"value\": {\n \"description\": \"A regular expression used to match the value. Named groups can be used in the destination\",\n \"type\": \"string\",\n \"maxLength\": 4096\n }\n }\n }\n ]\n }\n }\n }\n}\n","// Define all available runtimes in a single array\nconst RUNTIME_DEFINITIONS = [\n 'php-84',\n 'php-83',\n 'php-81',\n 'node-22',\n 'node-20',\n 'node-18',\n 'node-16',\n 'bun-1',\n] as const;\n\n// Generate the Runtime type from the array\nexport type Runtime = (typeof RUNTIME_DEFINITIONS)[number];\n\n// Export the available runtimes\nexport const AVAILABLE_RUNTIMES: Runtime[] = [...RUNTIME_DEFINITIONS];\n"],"mappings":";AAAA,OAAO,QAAQ;AACf,OAAO,UAAU;AAEV,IAAM,uBAAuB,CAAC,kBAAkB,iBAAiB,eAAe,cAAc,aAAa;AAO3G,IAAM,aAAa,CAAC,kBAAyC;AAClE,aAAW,QAAQ,sBAAsB;AACvC,UAAM,WAAW,KAAK,KAAK,eAAe,I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CAAC,QAAQ;AACX,UAAM,IAAI,MAAM,kBAAkB,YAAY,gCAAgC,OAAO,EAAE;AAAA,EACzF;AAGA,QAAM,MAAM,IAAI,IAAI;AACpB,aAAW,GAAG;AAEd,QAAM,WAAW,IAAI,QAAQ,MAAM;AAEnC,QAAM,QAAQ,SAAS,MAAM;AAC7B,MAAI,CAAC,OAAO;AACV,UAAM,IAAI,MAAM,kBAAkB,YAAY,gBAAgB,IAAI,WAAW,SAAS,MAAM,CAAC,EAAE;AAAA,EACjG;AAGA,QAAM,YAAkF;AAAA;AAAA;AAAA;AAAA,IAItF,GAAG;AAAA,EACL;AAEA,MAAI,cAAgC,MAAM,UAAU,OAAO,EAAE,QAAQ,aAAa;AAGlF,gBAAc,MAAM,yBAAyB,aAAa,aAAa;AAGvE,MAAI,YAAY,YAAY,WAAW,MAAM,YAAY,QAAQ,OAAO,UAAU,OAAO,GAAG;AAC1F,gBAAY,SAAS,KAAK,sEAAsE;AAAA,EAClG,WACE,YAAY,YAAY,WAAW,MAClC,YAAY,QAAQ,OAAO,UAAU,OAAO,KAC7C,YAAY,OAAO,WAAW,GAC9B;AACA,gBAAY,OAAO;AAAA,MACjB;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AACT;;;AMjEA,IAAM,sBAAsB;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAMO,IAAM,qBAAgC,CAAC,GAAG,mBAAmB;","names":["fs","path","fs","path","path","fs","getFilesForPattern","fs","path","getFilesForPattern","func","fs"]}
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@gigadrive/network-config",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "repository": {
5
5
  "type": "git",
6
- "url": "https://github.com/Gigadrive/sdk.git"
6
+ "url": "https://github.com/Gigadrive/sdk.git",
7
+ "directory": "packages/network-config"
7
8
  },
8
9
  "license": "Apache-2.0",
9
10
  "author": "Gigadrive <business@gigadrivegroup.com> (https://gigadrive.de)",
package/tsconfig.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "extends": "../../tsconfig.base.json",
3
3
  "compilerOptions": {
4
- "outDir": "./dist"
4
+ "outDir": "./dist",
5
+ "module": "ES2022"
5
6
  },
6
7
  "include": ["src"]
7
8
  }