diff --git a/.firebaserc b/.firebaserc deleted file mode 100644 index 55363eb..0000000 --- a/.firebaserc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "projects": { - "default": "dee-s-site" - } -} diff --git a/.vscode/schemas/package.schema.json b/.vscode/schemas/package.schema.json new file mode 100644 index 0000000..a24583f --- /dev/null +++ b/.vscode/schemas/package.schema.json @@ -0,0 +1,1309 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "JSON schema for NPM package.json files", + "definitions": { + "person": { + "description": "A person who has been involved in creating or maintaining this package.", + "type": [ + "object", + "string" + ], + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string", + "format": "uri" + }, + "email": { + "type": "string", + "format": "email" + } + } + }, + "dependency": { + "description": "Dependencies are specified with a simple hash of package name to version range. The version range is a string which has one or more space-separated descriptors. Dependencies can also be identified with a tarball or git URL.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "devDependency": { + "description": "Specifies dependencies that are required for the development and testing of the project. These dependencies are not needed in the production environment.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "optionalDependency": { + "description": "Specifies dependencies that are optional for your project. These dependencies are attempted to be installed during the npm install process, but if they fail to install, the installation process will not fail.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "peerDependency": { + "description": "Specifies dependencies that are required by the package but are expected to be provided by the consumer of the package.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "peerDependencyMeta": { + "description": "When a user installs your package, warnings are emitted if packages specified in \"peerDependencies\" are not already installed. The \"peerDependenciesMeta\" field serves to provide more information on how your peer dependencies are utilized. Most commonly, it allows peer dependencies to be marked as optional. Metadata for this field is specified with a simple hash of the package name to a metadata object.", + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": true, + "properties": { + "optional": { + "description": "Specifies that this peer dependency is optional and should not be installed automatically.", + "type": "boolean" + } + } + } + }, + "license": { + "anyOf": [ + { + "type": "string" + }, + { + "enum": [ + "AGPL-3.0-only", + "Apache-2.0", + "BSD-2-Clause", + "BSD-3-Clause", + "BSL-1.0", + "CC0-1.0", + "CDDL-1.0", + "CDDL-1.1", + "EPL-1.0", + "EPL-2.0", + "GPL-2.0-only", + "GPL-3.0-only", + "ISC", + "LGPL-2.0-only", + "LGPL-2.1-only", + "LGPL-2.1-or-later", + "LGPL-3.0-only", + "LGPL-3.0-or-later", + "MIT", + "MPL-2.0", + "MS-PL", + "UNLICENSED" + ] + } + ] + }, + "scriptsInstallAfter": { + "description": "Run AFTER the package is installed.", + "type": "string", + "x-intellij-language-injection": "Shell Script" + }, + "scriptsPublishAfter": { + "description": "Run AFTER the package is published.", + "type": "string", + "x-intellij-language-injection": "Shell Script" + }, + "scriptsRestart": { + "description": "Run by the 'npm restart' command. Note: 'npm restart' will run the stop and start scripts if no restart script is provided.", + "type": "string", + "x-intellij-language-injection": "Shell Script" + }, + "scriptsStart": { + "description": "Run by the 'npm start' command.", + "type": "string", + "x-intellij-language-injection": "Shell Script" + }, + "scriptsStop": { + "description": "Run by the 'npm stop' command.", + "type": "string", + "x-intellij-language-injection": "Shell Script" + }, + "scriptsTest": { + "description": "Run by the 'npm test' command.", + "type": "string", + "x-intellij-language-injection": "Shell Script" + }, + "scriptsUninstallBefore": { + "description": "Run BEFORE the package is uninstalled.", + "type": "string", + "x-intellij-language-injection": "Shell Script" + }, + "scriptsVersionBefore": { + "description": "Run BEFORE bump the package version.", + "type": "string", + "x-intellij-language-injection": "Shell Script" + }, + "packageExportsEntryPath": { + "type": [ + "string", + "null" + ], + "description": "The module path that is resolved when this specifier is imported. Set to `null` to disallow importing this module.", + "pattern": "^\\./" + }, + "packageExportsEntryObject": { + "type": "object", + "description": "Used to specify conditional exports, note that Conditional exports are unsupported in older environments, so it's recommended to use the fallback array option if support for those environments is a concern.", + "properties": { + "require": { + "$ref": "#/definitions/packageExportsEntryOrFallback", + "description": "The module path that is resolved when this specifier is imported as a CommonJS module using the `require(...)` function." + }, + "import": { + "$ref": "#/definitions/packageExportsEntryOrFallback", + "description": "The module path that is resolved when this specifier is imported as an ECMAScript module using an `import` declaration or the dynamic `import(...)` function." + }, + "module-sync": { + "$ref": "#/definitions/packageExportsEntryOrFallback", + "$comment": "https://nodejs.org/api/packages.html#conditional-exports#:~:text=%22module-sync%22", + "description": "The same as `import`, but can be used with require(esm) in Node 20+. This requires the files to not use any top-level awaits." + }, + "node": { + "$ref": "#/definitions/packageExportsEntryOrFallback", + "description": "The module path that is resolved when this environment is Node.js." + }, + "default": { + "$ref": "#/definitions/packageExportsEntryOrFallback", + "description": "The module path that is resolved when no other export type matches." + }, + "types": { + "$ref": "#/definitions/packageExportsEntryOrFallback", + "description": "The module path that is resolved for TypeScript types when this specifier is imported. Should be listed before other conditions. Additionally, versioned \"types\" condition in the form \"types@{selector}\" are supported." + } + }, + "patternProperties": { + "^[^.0-9]+$": { + "$ref": "#/definitions/packageExportsEntryOrFallback", + "description": "The module path that is resolved when this environment matches the property name." + }, + "^types@.+$": { + "$ref": "#/definitions/packageExportsEntryOrFallback", + "description": "The module path that is resolved for TypeScript types when this specifier is imported. Should be listed before other conditions. Additionally, versioned \"types\" condition in the form \"types@{selector}\" are supported." + } + }, + "additionalProperties": false + }, + "packageExportsEntry": { + "oneOf": [ + { + "$ref": "#/definitions/packageExportsEntryPath" + }, + { + "$ref": "#/definitions/packageExportsEntryObject" + } + ] + }, + "packageExportsFallback": { + "type": "array", + "description": "Used to allow fallbacks in case this environment doesn't support the preceding entries.", + "items": { + "$ref": "#/definitions/packageExportsEntry" + } + }, + "packageExportsEntryOrFallback": { + "oneOf": [ + { + "$ref": "#/definitions/packageExportsEntry" + }, + { + "$ref": "#/definitions/packageExportsFallback" + } + ] + }, + "packageImportsEntryPath": { + "type": [ + "string", + "null" + ], + "description": "The module path that is resolved when this specifier is imported. Set to `null` to disallow importing this module." + }, + "packageImportsEntryObject": { + "type": "object", + "description": "Used to specify conditional exports, note that Conditional exports are unsupported in older environments, so it's recommended to use the fallback array option if support for those environments is a concern.", + "properties": { + "require": { + "$ref": "#/definitions/packageImportsEntryOrFallback", + "description": "The module path that is resolved when this specifier is imported as a CommonJS module using the `require(...)` function." + }, + "import": { + "$ref": "#/definitions/packageImportsEntryOrFallback", + "description": "The module path that is resolved when this specifier is imported as an ECMAScript module using an `import` declaration or the dynamic `import(...)` function." + }, + "node": { + "$ref": "#/definitions/packageImportsEntryOrFallback", + "description": "The module path that is resolved when this environment is Node.js." + }, + "default": { + "$ref": "#/definitions/packageImportsEntryOrFallback", + "description": "The module path that is resolved when no other export type matches." + }, + "types": { + "$ref": "#/definitions/packageImportsEntryOrFallback", + "description": "The module path that is resolved for TypeScript types when this specifier is imported. Should be listed before other conditions. Additionally, versioned \"types\" condition in the form \"types@{selector}\" are supported." + } + }, + "patternProperties": { + "^[^.0-9]+$": { + "$ref": "#/definitions/packageImportsEntryOrFallback", + "description": "The module path that is resolved when this environment matches the property name." + }, + "^types@.+$": { + "$ref": "#/definitions/packageImportsEntryOrFallback", + "description": "The module path that is resolved for TypeScript types when this specifier is imported. Should be listed before other conditions. Additionally, versioned \"types\" condition in the form \"types@{selector}\" are supported." + } + }, + "additionalProperties": false + }, + "packageImportsEntry": { + "oneOf": [ + { + "$ref": "#/definitions/packageImportsEntryPath" + }, + { + "$ref": "#/definitions/packageImportsEntryObject" + } + ] + }, + "packageImportsFallback": { + "type": "array", + "description": "Used to allow fallbacks in case this environment doesn't support the preceding entries.", + "items": { + "$ref": "#/definitions/packageImportsEntry" + } + }, + "packageImportsEntryOrFallback": { + "oneOf": [ + { + "$ref": "#/definitions/packageImportsEntry" + }, + { + "$ref": "#/definitions/packageImportsFallback" + } + ] + }, + "fundingUrl": { + "type": "string", + "format": "uri", + "description": "URL to a website with details about how to fund the package." + }, + "fundingWay": { + "type": "object", + "description": "Used to inform about ways to help fund development of the package.", + "properties": { + "url": { + "$ref": "#/definitions/fundingUrl" + }, + "type": { + "type": "string", + "description": "The type of funding or the platform through which funding can be provided, e.g. patreon, opencollective, tidelift or github." + } + }, + "additionalProperties": false, + "required": [ + "url" + ] + }, + "devEngineDependency": { + "description": "Specifies requirements for development environment components such as operating systems, runtimes, or package managers. Used to ensure consistent development environments across the team.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the dependency, with allowed values depending on the parent field" + }, + "version": { + "type": "string", + "description": "The version range for the dependency" + }, + "onFail": { + "type": "string", + "enum": [ + "ignore", + "warn", + "error", + "download" + ], + "description": "What action to take if validation fails" + } + } + } + }, + "type": "object", + "patternProperties": { + "^_": { + "description": "Any property starting with _ is valid.", + "tsType": "any" + } + }, + "properties": { + "name": { + "description": "The name of the package.", + "type": "string", + "maxLength": 214, + "minLength": 1, + "pattern": "^(?:(?:@(?:[a-z0-9-*~][a-z0-9-*._~]*)?/[a-z0-9-._~])|[a-z0-9-~])[a-z0-9-._~]*$" + }, + "version": { + "description": "Version must be parsable by node-semver, which is bundled with npm as a dependency.", + "type": "string" + }, + "description": { + "description": "This helps people discover your package, as it's listed in 'npm search'.", + "type": "string" + }, + "keywords": { + "description": "This helps people discover your package as it's listed in 'npm search'.", + "type": "array", + "items": { + "type": "string" + } + }, + "homepage": { + "description": "The url to the project homepage.", + "type": "string" + }, + "bugs": { + "description": "The url to your project's issue tracker and / or the email address to which issues should be reported. These are helpful for people who encounter issues with your package.", + "type": [ + "object", + "string" + ], + "properties": { + "url": { + "type": "string", + "description": "The url to your project's issue tracker.", + "format": "uri" + }, + "email": { + "type": "string", + "description": "The email address to which issues should be reported.", + "format": "email" + } + } + }, + "license": { + "$ref": "#/definitions/license", + "description": "You should specify a license for your package so that people know how they are permitted to use it, and any restrictions you're placing on it." + }, + "licenses": { + "description": "DEPRECATED: Instead, use SPDX expressions, like this: { \"license\": \"ISC\" } or { \"license\": \"(MIT OR Apache-2.0)\" } see: 'https://docs.npmjs.com/files/package.json#license'.", + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/license" + }, + "url": { + "type": "string", + "format": "uri" + } + } + } + }, + "author": { + "$ref": "#/definitions/person" + }, + "contributors": { + "description": "A list of people who contributed to this package.", + "type": "array", + "items": { + "$ref": "#/definitions/person" + } + }, + "maintainers": { + "description": "A list of people who maintains this package.", + "type": "array", + "items": { + "$ref": "#/definitions/person" + } + }, + "files": { + "description": "The 'files' field is an array of files to include in your project. If you name a folder in the array, then it will also include the files inside that folder.", + "type": "array", + "items": { + "type": "string" + } + }, + "main": { + "description": "The main field is a module ID that is the primary entry point to your program.", + "type": "string" + }, + "exports": { + "description": "The \"exports\" field is used to restrict external access to non-exported module files, also enables a module to import itself using \"name\".", + "oneOf": [ + { + "$ref": "#/definitions/packageExportsEntryPath", + "description": "The module path that is resolved when the module specifier matches \"name\", shadows the \"main\" field." + }, + { + "type": "object", + "properties": { + ".": { + "$ref": "#/definitions/packageExportsEntryOrFallback", + "description": "The module path that is resolved when the module specifier matches \"name\", shadows the \"main\" field." + } + }, + "patternProperties": { + "^\\./.+": { + "$ref": "#/definitions/packageExportsEntryOrFallback", + "description": "The module path prefix that is resolved when the module specifier starts with \"name/\", set to \"./*\" to allow external modules to import any subpath." + } + }, + "additionalProperties": false + }, + { + "$ref": "#/definitions/packageExportsEntryObject", + "description": "The module path that is resolved when the module specifier matches \"name\", shadows the \"main\" field." + }, + { + "$ref": "#/definitions/packageExportsFallback", + "description": "The module path that is resolved when the module specifier matches \"name\", shadows the \"main\" field." + } + ] + }, + "imports": { + "description": "The \"imports\" field is used to create private mappings that only apply to import specifiers from within the package itself.", + "type": "object", + "patternProperties": { + "^#.+$": { + "$ref": "#/definitions/packageImportsEntryOrFallback", + "description": "The module path that is resolved when this environment matches the property name." + } + }, + "additionalProperties": false + }, + "bin": { + "type": [ + "string", + "object" + ], + "additionalProperties": { + "type": "string" + } + }, + "type": { + "description": "When set to \"module\", the type field allows a package to specify all .js files within are ES modules. If the \"type\" field is omitted or set to \"commonjs\", all .js files are treated as CommonJS.", + "type": "string", + "enum": [ + "commonjs", + "module" + ], + "default": "commonjs" + }, + "types": { + "description": "Set the types property to point to your bundled declaration file.", + "type": "string" + }, + "typings": { + "description": "Note that the \"typings\" field is synonymous with \"types\", and could be used as well.", + "type": "string" + }, + "typesVersions": { + "description": "The \"typesVersions\" field is used since TypeScript 3.1 to support features that were only made available in newer TypeScript versions.", + "type": "object", + "additionalProperties": { + "description": "Contains overrides for the TypeScript version that matches the version range matching the property key.", + "type": "object", + "properties": { + "*": { + "description": "Maps all file paths to the file paths specified in the array.", + "type": "array", + "items": { + "type": "string", + "pattern": "^[^*]*(?:\\*[^*]*)?$" + } + } + }, + "patternProperties": { + "^[^*]+$": { + "description": "Maps the file path matching the property key to the file paths specified in the array.", + "type": "array", + "items": { + "type": "string" + } + }, + "^[^*]*\\*[^*]*$": { + "description": "Maps file paths matching the pattern specified in property key to file paths specified in the array.", + "type": "array", + "items": { + "type": "string", + "pattern": "^[^*]*(?:\\*[^*]*)?$" + } + } + }, + "additionalProperties": false + } + }, + "man": { + "type": [ + "array", + "string" + ], + "description": "Specify either a single file or an array of filenames to put in place for the man program to find.", + "items": { + "type": "string" + } + }, + "directories": { + "type": "object", + "properties": { + "bin": { + "description": "If you specify a 'bin' directory, then all the files in that folder will be used as the 'bin' hash.", + "type": "string" + }, + "doc": { + "description": "Put markdown files in here. Eventually, these will be displayed nicely, maybe, someday.", + "type": "string" + }, + "example": { + "description": "Put example scripts in here. Someday, it might be exposed in some clever way.", + "type": "string" + }, + "lib": { + "description": "Tell people where the bulk of your library is. Nothing special is done with the lib folder in any way, but it's useful meta info.", + "type": "string" + }, + "man": { + "description": "A folder that is full of man pages. Sugar to generate a 'man' array by walking the folder.", + "type": "string" + }, + "test": { + "type": "string" + } + } + }, + "repository": { + "description": "Specify the place where your code lives. This is helpful for people who want to contribute.", + "type": [ + "object", + "string" + ], + "properties": { + "type": { + "type": "string" + }, + "url": { + "type": "string" + }, + "directory": { + "type": "string" + } + } + }, + "funding": { + "oneOf": [ + { + "$ref": "#/definitions/fundingUrl" + }, + { + "$ref": "#/definitions/fundingWay" + }, + { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/fundingUrl" + }, + { + "$ref": "#/definitions/fundingWay" + } + ] + }, + "minItems": 1, + "uniqueItems": true + } + ] + }, + "scripts": { + "description": "The 'scripts' member is an object hash of script commands that are run at various times in the lifecycle of your package. The key is the lifecycle event, and the value is the command to run at that point.", + "type": "object", + "properties": { + "lint": { + "type": "string", + "description": "Run code quality tools, e.g. ESLint, TSLint, etc." + }, + "prepublish": { + "type": "string", + "description": "Run BEFORE the package is published (Also run on local npm install without any arguments)." + }, + "prepare": { + "type": "string", + "description": "Runs BEFORE the package is packed, i.e. during \"npm publish\" and \"npm pack\", and on local \"npm install\" without any arguments. This is run AFTER \"prepublish\", but BEFORE \"prepublishOnly\"." + }, + "prepublishOnly": { + "type": "string", + "description": "Run BEFORE the package is prepared and packed, ONLY on npm publish." + }, + "prepack": { + "type": "string", + "description": "run BEFORE a tarball is packed (on npm pack, npm publish, and when installing git dependencies)." + }, + "postpack": { + "type": "string", + "description": "Run AFTER the tarball has been generated and moved to its final destination." + }, + "publish": { + "type": "string", + "description": "Publishes a package to the registry so that it can be installed by name. See https://docs.npmjs.com/cli/v8/commands/npm-publish" + }, + "postpublish": { + "$ref": "#/definitions/scriptsPublishAfter" + }, + "preinstall": { + "type": "string", + "description": "Run BEFORE the package is installed." + }, + "install": { + "$ref": "#/definitions/scriptsInstallAfter" + }, + "postinstall": { + "$ref": "#/definitions/scriptsInstallAfter" + }, + "preuninstall": { + "$ref": "#/definitions/scriptsUninstallBefore" + }, + "uninstall": { + "$ref": "#/definitions/scriptsUninstallBefore" + }, + "postuninstall": { + "type": "string", + "description": "Run AFTER the package is uninstalled." + }, + "preversion": { + "$ref": "#/definitions/scriptsVersionBefore" + }, + "version": { + "$ref": "#/definitions/scriptsVersionBefore" + }, + "postversion": { + "type": "string", + "description": "Run AFTER bump the package version." + }, + "pretest": { + "$ref": "#/definitions/scriptsTest" + }, + "test": { + "$ref": "#/definitions/scriptsTest" + }, + "posttest": { + "$ref": "#/definitions/scriptsTest" + }, + "prestop": { + "$ref": "#/definitions/scriptsStop" + }, + "stop": { + "$ref": "#/definitions/scriptsStop" + }, + "poststop": { + "$ref": "#/definitions/scriptsStop" + }, + "prestart": { + "$ref": "#/definitions/scriptsStart" + }, + "start": { + "$ref": "#/definitions/scriptsStart" + }, + "poststart": { + "$ref": "#/definitions/scriptsStart" + }, + "prerestart": { + "$ref": "#/definitions/scriptsRestart" + }, + "restart": { + "$ref": "#/definitions/scriptsRestart" + }, + "postrestart": { + "$ref": "#/definitions/scriptsRestart" + }, + "serve": { + "type": "string", + "description": "Start dev server to serve application files" + } + }, + "additionalProperties": { + "type": "string", + "tsType": "string | undefined", + "x-intellij-language-injection": "Shell Script" + } + }, + "config": { + "description": "A 'config' hash can be used to set configuration parameters used in package scripts that persist across upgrades.", + "type": "object", + "additionalProperties": true + }, + "dependencies": { + "$ref": "#/definitions/dependency" + }, + "devDependencies": { + "$ref": "#/definitions/devDependency" + }, + "optionalDependencies": { + "$ref": "#/definitions/optionalDependency" + }, + "peerDependencies": { + "$ref": "#/definitions/peerDependency" + }, + "peerDependenciesMeta": { + "$ref": "#/definitions/peerDependencyMeta" + }, + "bundleDependencies": { + "description": "Array of package names that will be bundled when publishing the package.", + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "boolean" + } + ] + }, + "bundledDependencies": { + "description": "DEPRECATED: This field is honored, but \"bundleDependencies\" is the correct field name.", + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "boolean" + } + ] + }, + "resolutions": { + "description": "Resolutions is used to support selective version resolutions using yarn, which lets you define custom package versions or ranges inside your dependencies. For npm, use overrides instead. See: https://yarnpkg.com/configuration/manifest#resolutions", + "type": "object" + }, + "overrides": { + "description": "Overrides is used to support selective version overrides using npm, which lets you define custom package versions or ranges inside your dependencies. For yarn, use resolutions instead. See: https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides", + "type": "object" + }, + "packageManager": { + "description": "Defines which package manager is expected to be used when working on the current project. This field is currently experimental and needs to be opted-in; see https://nodejs.org/api/corepack.html", + "type": "string", + "pattern": "(npm|pnpm|yarn|bun)@\\d+\\.\\d+\\.\\d+(-.+)?" + }, + "engines": { + "type": "object", + "properties": { + "node": { + "type": "string" + } + }, + "additionalProperties": { + "type": "string" + } + }, + "volta": { + "description": "Defines which tools and versions are expected to be used when Volta is installed.", + "type": "object", + "properties": { + "extends": { + "description": "The value of that entry should be a path to another JSON file which also has a \"volta\" section", + "type": "string" + } + }, + "patternProperties": { + "(node|npm|pnpm|yarn)": { + "type": "string" + } + } + }, + "engineStrict": { + "type": "boolean" + }, + "os": { + "description": "Specify which operating systems your module will run on.", + "type": "array", + "items": { + "type": "string" + } + }, + "cpu": { + "description": "Specify that your code only runs on certain cpu architectures.", + "type": "array", + "items": { + "type": "string" + } + }, + "devEngines": { + "description": "Define the runtime and package manager for developing the current project.", + "type": "object", + "properties": { + "os": { + "oneOf": [ + { + "$ref": "#/definitions/devEngineDependency" + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/devEngineDependency" + } + } + ], + "description": "Specifies which operating systems are supported for development" + }, + "cpu": { + "oneOf": [ + { + "$ref": "#/definitions/devEngineDependency" + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/devEngineDependency" + } + } + ], + "description": "Specifies which CPU architectures are supported for development" + }, + "libc": { + "oneOf": [ + { + "$ref": "#/definitions/devEngineDependency" + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/devEngineDependency" + } + } + ], + "description": "Specifies which C standard libraries are supported for development" + }, + "runtime": { + "oneOf": [ + { + "$ref": "#/definitions/devEngineDependency" + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/devEngineDependency" + } + } + ], + "description": "Specifies which JavaScript runtimes (like Node.js, Deno, Bun) are supported for development. Values should use WinterCG Runtime Keys (see https://runtime-keys.proposal.wintercg.org/)" + }, + "packageManager": { + "oneOf": [ + { + "$ref": "#/definitions/devEngineDependency" + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/devEngineDependency" + } + } + ], + "description": "Specifies which package managers are supported for development" + } + } + }, + "preferGlobal": { + "type": "boolean", + "description": "DEPRECATED: This option used to trigger an npm warning, but it will no longer warn. It is purely there for informational purposes. It is now recommended that you install any binaries as local devDependencies wherever possible." + }, + "private": { + "description": "If set to true, then npm will refuse to publish it.", + "oneOf": [ + { + "type": "boolean" + }, + { + "enum": [ + "false", + "true" + ] + } + ] + }, + "publishConfig": { + "type": "object", + "properties": { + "access": { + "type": "string", + "enum": [ + "public", + "restricted" + ] + }, + "tag": { + "type": "string" + }, + "registry": { + "type": "string", + "format": "uri" + }, + "provenance": { + "type": "boolean" + } + }, + "additionalProperties": true + }, + "dist": { + "type": "object", + "properties": { + "shasum": { + "type": "string" + }, + "tarball": { + "type": "string" + } + } + }, + "readme": { + "type": "string" + }, + "module": { + "description": "An ECMAScript module ID that is the primary entry point to your program.", + "type": "string" + }, + "esnext": { + "description": "A module ID with untranspiled code that is the primary entry point to your program.", + "type": [ + "string", + "object" + ], + "properties": { + "main": { + "type": "string" + }, + "browser": { + "type": "string" + } + }, + "additionalProperties": { + "type": "string" + } + }, + "workspaces": { + "description": "Allows packages within a directory to depend on one another using direct linking of local files. Additionally, dependencies within a workspace are hoisted to the workspace root when possible to reduce duplication. Note: It's also a good idea to set \"private\" to true when using this feature.", + "anyOf": [ + { + "type": "array", + "description": "Workspace package paths. Glob patterns are supported.", + "items": { + "type": "string" + } + }, + { + "type": "object", + "properties": { + "packages": { + "type": "array", + "description": "Workspace package paths. Glob patterns are supported.", + "items": { + "type": "string" + } + }, + "nohoist": { + "type": "array", + "description": "Packages to block from hoisting to the workspace root. Currently only supported in Yarn only.", + "items": { + "type": "string" + } + } + } + } + ] + }, + "jspm": { + "$ref": "#" + }, + "eslintConfig": { + "$ref": "https://json.schemastore.org/eslintrc.json" + }, + "prettier": { + "$ref": "https://json.schemastore.org/prettierrc.json" + }, + "stylelint": { + "$ref": "https://json.schemastore.org/stylelintrc.json" + }, + "ava": { + "$ref": "https://json.schemastore.org/ava.json" + }, + "release": { + "$ref": "https://json.schemastore.org/semantic-release.json" + }, + "jscpd": { + "$ref": "https://json.schemastore.org/jscpd.json" + }, + "pnpm": { + "description": "Defines pnpm specific configuration.", + "type": "object", + "properties": { + "overrides": { + "description": "Used to override any dependency in the dependency graph.", + "type": "object" + }, + "packageExtensions": { + "description": "Used to extend the existing package definitions with additional information.", + "type": "object", + "patternProperties": { + "^.+$": { + "type": "object", + "properties": { + "dependencies": { + "$ref": "#/definitions/dependency" + }, + "optionalDependencies": { + "$ref": "#/definitions/optionalDependency" + }, + "peerDependencies": { + "$ref": "#/definitions/peerDependency" + }, + "peerDependenciesMeta": { + "$ref": "#/definitions/peerDependencyMeta" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "peerDependencyRules": { + "type": "object", + "properties": { + "ignoreMissing": { + "description": "pnpm will not print warnings about missing peer dependencies from this list.", + "type": "array", + "items": { + "type": "string" + } + }, + "allowedVersions": { + "description": "Unmet peer dependency warnings will not be printed for peer dependencies of the specified range.", + "type": "object" + }, + "allowAny": { + "description": "Any peer dependency matching the pattern will be resolved from any version, regardless of the range specified in \"peerDependencies\".", + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "neverBuiltDependencies": { + "description": "A list of dependencies to run builds for.", + "type": "array", + "items": { + "type": "string" + } + }, + "onlyBuiltDependencies": { + "description": "A list of package names that are allowed to be executed during installation.", + "type": "array", + "items": { + "type": "string" + } + }, + "onlyBuiltDependenciesFile": { + "description": "Specifies a JSON file that lists the only packages permitted to run installation scripts during the pnpm install process.", + "type": "string" + }, + "ignoredBuiltDependencies": { + "description": "A list of package names that should not be built during installation.", + "type": "array", + "items": { + "type": "string" + } + }, + "allowedDeprecatedVersions": { + "description": "A list of deprecated versions that the warnings are suppressed.", + "type": "object" + }, + "patchedDependencies": { + "description": "A list of dependencies that are patched.", + "type": "object" + }, + "allowNonAppliedPatches": { + "description": "When true, installation won't fail if some of the patches from the \"patchedDependencies\" field were not applied.", + "type": "boolean" + }, + "allowUnusedPatches": { + "description": "When true, installation won't fail if some of the patches from the \"patchedDependencies\" field were not applied.", + "type": "boolean" + }, + "updateConfig": { + "type": "object", + "properties": { + "ignoreDependencies": { + "description": "A list of packages that should be ignored when running \"pnpm outdated\" or \"pnpm update --latest\".", + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "configDependencies": { + "type": "object", + "description": "Configurational dependencies are installed before all the other types of dependencies (before 'dependencies', 'devDependencies', 'optionalDependencies')." + }, + "auditConfig": { + "type": "object", + "properties": { + "ignoreCves": { + "description": "A list of CVE IDs that will be ignored by \"pnpm audit\".", + "type": "array", + "items": { + "type": "string", + "pattern": "^CVE-\\d{4}-\\d{4,7}$" + } + }, + "ignoreGhsas": { + "description": "A list of GHSA Codes that will be ignored by \"pnpm audit\".", + "type": "array", + "items": { + "type": "string", + "pattern": "^GHSA(-[23456789cfghjmpqrvwx]{4}){3}$" + } + } + }, + "additionalProperties": false + }, + "requiredScripts": { + "description": "A list of scripts that must exist in each project.", + "type": "array", + "items": { + "type": "string" + } + }, + "supportedArchitectures": { + "description": "Specifies architectures for which you'd like to install optional dependencies, even if they don't match the architecture of the system running the install.", + "type": "object", + "properties": { + "os": { + "type": "array", + "items": { + "type": "string" + } + }, + "cpu": { + "type": "array", + "items": { + "type": "string" + } + }, + "libc": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "ignoredOptionalDependencies": { + "description": "A list of optional dependencies that the install should be skipped.", + "type": "array", + "items": { + "type": "string" + } + }, + "executionEnv": { + "type": "object", + "properties": { + "nodeVersion": { + "description": "Specifies which exact Node.js version should be used for the project's runtime.", + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "stackblitz": { + "description": "Defines the StackBlitz configuration for the project.", + "type": "object", + "properties": { + "installDependencies": { + "description": "StackBlitz automatically installs npm dependencies when opening a project.", + "type": "boolean" + }, + "startCommand": { + "description": "A terminal command to be executed when opening the project, after installing npm dependencies.", + "type": [ + "string", + "boolean" + ] + }, + "compileTrigger": { + "description": "The compileTrigger option controls how file changes in the editor are written to the WebContainers in-memory filesystem. ", + "oneOf": [ + { + "type": "string", + "enum": [ + "auto", + "keystroke", + "save" + ] + } + ] + }, + "env": { + "description": "A map of default environment variables that will be set in each top-level shell process.", + "type": "object" + } + }, + "additionalProperties": false + } + }, + "anyOf": [ + { + "type": "object", + "not": { + "required": [ + "bundledDependencies", + "bundleDependencies" + ] + } + }, + { + "type": "object", + "not": { + "required": [ + "bundleDependencies" + ] + }, + "required": [ + "bundledDependencies" + ] + }, + { + "type": "object", + "not": { + "required": [ + "bundledDependencies" + ] + }, + "required": [ + "bundleDependencies" + ] + } + ], + "$id": "https://json.schemastore.org/package.json" +} diff --git a/.vscode/schemas/vercel.schema.json b/.vscode/schemas/vercel.schema.json new file mode 100644 index 0000000..36a7f22 --- /dev/null +++ b/.vscode/schemas/vercel.schema.json @@ -0,0 +1,3188 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": false, + "properties": { + "$schema": { + "description": "Ignored. Can be set to get completions, validations and documentation in some editors.", + "example": [ + "https://openapi.vercel.sh/vercel.json" + ], + "type": "string" + }, + "alias": { + "description": "Aliases that will get assigned when the deployment is `READY` and the target is `production`. The client needs to make a `GET` request to its API to ensure the assignment", + "example": [ + "example.vercel.app" + ], + "oneOf": [ + { + "private": true, + "type": "string" + }, + { + "items": { + "maxLength": 253, + "type": "string" + }, + "maxItems": 50, + "maxLength": 253, + "type": "array" + } + ] + }, + "build": { + "additionalProperties": false, + "description": "An object containing another object with information to be passed to the Build Process", + "deprecated": true, + "properties": { + "env": { + "additionalProperties": false, + "description": "An object containing the deployment's environment variable names and values to be passed to Builds. Secrets can be referenced by prefixing the value with `@`", + "example": { + "A_SECRET": "@a-secret" + }, + "deprecated": true, + "maxProperties": 1000, + "minProperties": 0, + "patternProperties": { + ".+": { + "maxLength": 65536, + "minLength": 0, + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "builds": { + "description": "A list of build descriptions whose src references valid source files.", + "deprecated": true, + "items": { + "additionalProperties": false, + "properties": { + "config": { + "description": "Optionally, an object including arbitrary metadata to be passed to the Builder", + "type": "object" + }, + "src": { + "description": "A glob expression or pathname. If more than one file is resolved, one build will be created per matched file. It can include `*` and `**`", + "maxLength": 4096, + "minLength": 1, + "type": "string" + }, + "use": { + "description": "An npm module to be installed by the build process. It can include a semver compatible version (e.g.: `@org/proj@1`)", + "maxLength": 256, + "minLength": 3, + "type": "string" + } + }, + "required": [ + "use" + ], + "type": "object" + }, + "maxItems": 128, + "minItems": 0, + "type": "array" + }, + "cleanUrls": { + "description": "When set to `true`, all HTML files and Serverless Functions will have their extension removed. When visiting a path that ends with the extension, a 308 response will redirect the client to the extensionless path.", + "type": "boolean" + }, + "env": { + "additionalProperties": false, + "description": "An object containing the deployment's environment variable names and values. Secrets can be referenced by prefixing the value with `@`", + "example": { + "A_SECRET": "@a-secret" + }, + "deprecated": true, + "maxProperties": 1000, + "minProperties": 0, + "patternProperties": { + ".+": { + "maxLength": 65536, + "minLength": 0, + "type": "string" + } + }, + "type": "object" + }, + "passiveRegions": { + "description": "An array of the passive regions the deployment's Serverless Functions should be deployed to that can be failed over to during a lambda outage", + "example": [ + "iad1", + "cle1" + ], + "items": { + "maxLength": 256, + "type": "string" + }, + "maxItems": 4, + "minItems": 1, + "type": "array" + }, + "functionFailoverRegions": { + "description": "Same as passiveRegions. An array of the passive regions the deployment's Serverless Functions should be deployed to so we can failover to these regions on lambda outages", + "example": [ + "iad1", + "cle1" + ], + "items": { + "maxLength": 256, + "type": "string" + }, + "maxItems": 4, + "minItems": 1, + "type": "array" + }, + "functions": { + "additionalProperties": false, + "description": "An object describing custom options for your Serverless Functions. Each key must be glob pattern that matches the paths of the Serverless Functions you would like to customize (like `api/*.js` or `api/test.js`).", + "example": { + "src/pages/**": { + "maxDuration": 6, + "memory": 1024 + } + }, + "maxProperties": 50, + "minProperties": 1, + "patternProperties": { + "^.{1,256}$": { + "additionalProperties": false, + "properties": { + "excludeFiles": { + "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.", + "maxLength": 256, + "type": "string" + }, + "includeFiles": { + "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.", + "maxLength": 256, + "type": "string" + }, + "maxDuration": { + "description": "How long your Serverless Function should be allowed to run on every request in seconds (between 1 and the maximum limit of your plan), or \"max\" to use the maximum allowed by your plan.", + "oneOf": [ + { + "type": "number", + "minimum": 1, + "maximum": 900 + }, + { + "type": "string", + "enum": [ + "max" + ] + } + ] + }, + "memory": { + "description": "An integer defining the memory your Serverless Function should be provided with (between 128 and 10240).", + "maximum": 10240, + "minimum": 128, + "type": "number" + }, + "runtime": { + "description": "The npm package name of a Runtime, including its version", + "maxLength": 256, + "type": "string" + }, + "regions": { + "description": "An array of regions this Serverless Function should be deployed to.", + "items": { + "maxLength": 256, + "type": "string" + }, + "maxItems": 1000, + "minItems": 1, + "type": "array" + }, + "functionFailoverRegions": { + "description": "An array of passive regions this Serverless Function can fail over to during a lambda outage.", + "items": { + "maxLength": 256, + "type": "string" + }, + "maxItems": 4, + "minItems": 0, + "type": "array" + }, + "supportsCancellation": { + "description": "A boolean that defines whether the Function supports cancellation (default: false)", + "type": "boolean" + }, + "experimentalTriggers": { + "description": "An array of experimental triggers for this Serverless Function. Currently only supports queue triggers.", + "type": "array", + "maxItems": 10, + "items": { + "oneOf": [ + { + "type": "object", + "required": [ + "type", + "topic", + "consumer" + ], + "additionalProperties": false, + "properties": { + "type": { + "description": "Event type pattern this trigger handles", + "type": "string", + "const": "queue/v1beta" + }, + "topic": { + "description": "Name of the queue topic to consume from", + "type": "string", + "minLength": 1, + "maxLength": 256 + }, + "consumer": { + "description": "Name of the consumer group for this trigger", + "type": "string", + "minLength": 1, + "maxLength": 256 + }, + "maxDeliveries": { + "description": "Maximum number of delivery attempts", + "type": "number", + "minimum": 1, + "maximum": 64 + }, + "retryAfterSeconds": { + "description": "Delay in seconds before retrying failed executions", + "type": "number", + "minimum": 5, + "maximum": 86400 + }, + "initialDelaySeconds": { + "description": "Initial delay in seconds before first execution attempt", + "type": "number", + "minimum": 0, + "maximum": 86400 + }, + "maxConcurrency": { + "description": "Maximum number of concurrent executions for this consumer", + "type": "number", + "minimum": 1, + "maximum": 100 + } + } + }, + { + "type": "object", + "required": [ + "type", + "topic" + ], + "additionalProperties": false, + "properties": { + "type": { + "description": "Event type pattern this trigger handles", + "type": "string", + "const": "queue/v2beta" + }, + "topic": { + "description": "Name of the queue topic to consume from", + "type": "string", + "minLength": 1, + "maxLength": 256 + }, + "maxDeliveries": { + "description": "Maximum number of delivery attempts", + "type": "number", + "minimum": 1, + "maximum": 1048576 + }, + "retryAfterSeconds": { + "description": "Delay in seconds before retrying failed executions", + "type": "number", + "exclusiveMinimum": 0, + "maximum": 86400 + }, + "initialDelaySeconds": { + "description": "Initial delay in seconds before first execution attempt", + "type": "number", + "minimum": 0, + "maximum": 86400 + }, + "maxConcurrency": { + "description": "Maximum number of concurrent executions for this consumer", + "type": "number", + "minimum": 1, + "maximum": 16384 + } + } + } + ] + } + } + }, + "type": "object" + } + }, + "type": "object" + }, + "git": { + "type": "object", + "properties": { + "deploymentEnabled": { + "description": "Specifies the branches that will not trigger an auto-deployment when committing to them. Any non specified branch is `true` by default.", + "example": { + "main": false + }, + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + } + ] + }, + "exclusivity": { + "private": true, + "type": "object", + "description": "If specified, the git repository will be exclusive to the specificed Team IDs. Teams that are not specified in the list will not be able to link new projects or create new deployments.", + "properties": { + "teams": { + "type": "array", + "description": "A list of allowed Team IDs.", + "items": { + "type": "string" + }, + "maxItems": 10, + "minItems": 1 + } + } + } + } + }, + "github": { + "private": true, + "type": "object", + "properties": { + "autoAlias": { + "description": "When set to `false`, Vercel for GitHub will not deploy the given project regardless of the GitHub app being installed.", + "type": "boolean" + }, + "autoJobCancelation": { + "description": "When set to `false`, Vercel for GitHub will always build pushes in sequence without cancelling a build for the most recent commit.", + "type": "boolean" + }, + "enabled": { + "description": "When set to false, Vercel for GitHub will not apply the alias upon merge.", + "type": "boolean" + }, + "silent": { + "deprecated": true, + "description": "[deprecated] Please use the Project Settings in the dashboard instead: https://vercel.link/46vERTS When set to `true`, Vercel for GitHub will stop commenting on pull requests and commits.", + "type": "boolean" + } + } + }, + "headers": { + "type": "array", + "maxItems": 2048, + "description": "A list of header definitions.", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "source", + "headers" + ], + "properties": { + "source": { + "description": "A pattern that matches each incoming pathname (excluding querystring)", + "type": "string", + "maxLength": 4096 + }, + "headers": { + "description": "An array of key/value pairs representing each response header.", + "type": "array", + "maxItems": 1024, + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "key", + "value" + ], + "properties": { + "key": { + "type": "string", + "maxLength": 4096 + }, + "value": { + "type": "string", + "maxLength": 32768 + } + } + } + }, + "has": { + "description": "An array of requirements that are needed to match", + "type": "array", + "maxItems": 16, + "items": { + "anyOf": [ + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "value" + ], + "properties": { + "type": { + "description": "The type of request element to check", + "type": "string", + "enum": [ + "host" + ] + }, + "value": { + "description": "A value to match against. Can be a string (regex) or a condition operation object", + "anyOf": [ + { + "description": "A regular expression used to match thev value. Named groups can be used in the destination.", + "type": "string", + "maxLength": 4096 + }, + { + "description": "A condition operation object", + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "eq": { + "description": "Equal to", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "number" + } + ] + }, + "neq": { + "description": "Not equal", + "type": "string", + "maxLength": 4096 + }, + "inc": { + "description": "In array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "ninc": { + "description": "Not in array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "pre": { + "description": "Starts with", + "type": "string", + "maxLength": 4096 + }, + "suf": { + "description": "Ends with", + "type": "string", + "maxLength": 4096 + }, + "re": { + "description": "Regex", + "type": "string", + "maxLength": 4096 + }, + "gt": { + "description": "Greater than", + "type": "number" + }, + "gte": { + "description": "Greater than or equal to", + "type": "number" + }, + "lt": { + "description": "Less than", + "type": "number" + }, + "lte": { + "description": "Less than or equal to", + "type": "number" + } + } + } + ] + } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "key" + ], + "properties": { + "type": { + "description": "The type of request element to check", + "type": "string", + "enum": [ + "header", + "cookie", + "query" + ] + }, + "key": { + "description": "The name of the element contained in the particular type", + "type": "string", + "maxLength": 4096 + }, + "value": { + "description": "A value to match against. Can be a string (regex) or a condition operation object", + "anyOf": [ + { + "description": "A regular expression used to match thev value. Named groups can be used in the destination.", + "type": "string", + "maxLength": 4096 + }, + { + "description": "A condition operation object", + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "eq": { + "description": "Equal to", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "number" + } + ] + }, + "neq": { + "description": "Not equal", + "type": "string", + "maxLength": 4096 + }, + "inc": { + "description": "In array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "ninc": { + "description": "Not in array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "pre": { + "description": "Starts with", + "type": "string", + "maxLength": 4096 + }, + "suf": { + "description": "Ends with", + "type": "string", + "maxLength": 4096 + }, + "re": { + "description": "Regex", + "type": "string", + "maxLength": 4096 + }, + "gt": { + "description": "Greater than", + "type": "number" + }, + "gte": { + "description": "Greater than or equal to", + "type": "number" + }, + "lt": { + "description": "Less than", + "type": "number" + }, + "lte": { + "description": "Less than or equal to", + "type": "number" + } + } + } + ] + } + } + } + ] + } + }, + "missing": { + "description": "An array of requirements that are needed to match", + "type": "array", + "maxItems": 16, + "items": { + "anyOf": [ + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "value" + ], + "properties": { + "type": { + "description": "The type of request element to check", + "type": "string", + "enum": [ + "host" + ] + }, + "value": { + "description": "A value to match against. Can be a string (regex) or a condition operation object", + "anyOf": [ + { + "description": "A regular expression used to match thev value. Named groups can be used in the destination.", + "type": "string", + "maxLength": 4096 + }, + { + "description": "A condition operation object", + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "eq": { + "description": "Equal to", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "number" + } + ] + }, + "neq": { + "description": "Not equal", + "type": "string", + "maxLength": 4096 + }, + "inc": { + "description": "In array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "ninc": { + "description": "Not in array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "pre": { + "description": "Starts with", + "type": "string", + "maxLength": 4096 + }, + "suf": { + "description": "Ends with", + "type": "string", + "maxLength": 4096 + }, + "re": { + "description": "Regex", + "type": "string", + "maxLength": 4096 + }, + "gt": { + "description": "Greater than", + "type": "number" + }, + "gte": { + "description": "Greater than or equal to", + "type": "number" + }, + "lt": { + "description": "Less than", + "type": "number" + }, + "lte": { + "description": "Less than or equal to", + "type": "number" + } + } + } + ] + } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "key" + ], + "properties": { + "type": { + "description": "The type of request element to check", + "type": "string", + "enum": [ + "header", + "cookie", + "query" + ] + }, + "key": { + "description": "The name of the element contained in the particular type", + "type": "string", + "maxLength": 4096 + }, + "value": { + "description": "A value to match against. Can be a string (regex) or a condition operation object", + "anyOf": [ + { + "description": "A regular expression used to match thev value. Named groups can be used in the destination.", + "type": "string", + "maxLength": 4096 + }, + { + "description": "A condition operation object", + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "eq": { + "description": "Equal to", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "number" + } + ] + }, + "neq": { + "description": "Not equal", + "type": "string", + "maxLength": 4096 + }, + "inc": { + "description": "In array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "ninc": { + "description": "Not in array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "pre": { + "description": "Starts with", + "type": "string", + "maxLength": 4096 + }, + "suf": { + "description": "Ends with", + "type": "string", + "maxLength": 4096 + }, + "re": { + "description": "Regex", + "type": "string", + "maxLength": 4096 + }, + "gt": { + "description": "Greater than", + "type": "number" + }, + "gte": { + "description": "Greater than or equal to", + "type": "number" + }, + "lt": { + "description": "Less than", + "type": "number" + }, + "lte": { + "description": "Less than or equal to", + "type": "number" + } + } + } + ] + } + } + } + ] + } + } + } + } + }, + "images": { + "type": "object", + "additionalProperties": false, + "required": [ + "sizes" + ], + "properties": { + "contentDispositionType": { + "enum": [ + "inline", + "attachment" + ] + }, + "contentSecurityPolicy": { + "type": "string", + "minLength": 1, + "maxLength": 256 + }, + "dangerouslyAllowSVG": { + "type": "boolean" + }, + "domains": { + "type": "array", + "minItems": 0, + "maxItems": 50, + "items": { + "type": "string", + "minLength": 1, + "maxLength": 256 + } + }, + "formats": { + "type": "array", + "minItems": 1, + "maxItems": 4, + "items": { + "enum": [ + "image/avif", + "image/webp", + "image/jpeg", + "image/png" + ] + } + }, + "localPatterns": { + "type": "array", + "minItems": 0, + "maxItems": 25, + "items": { + "type": "object", + "additionalProperties": false, + "properties": { + "pathname": { + "type": "string", + "minLength": 1, + "maxLength": 256 + }, + "search": { + "type": "string", + "minLength": 0, + "maxLength": 256 + } + } + } + }, + "minimumCacheTTL": { + "type": "integer", + "minimum": 1, + "maximum": 315360000 + }, + "qualities": { + "type": "array", + "minItems": 1, + "maxItems": 20, + "items": { + "type": "integer", + "minimum": 1, + "maximum": 100 + } + }, + "remotePatterns": { + "type": "array", + "minItems": 0, + "maxItems": 50, + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "hostname" + ], + "properties": { + "protocol": { + "enum": [ + "http", + "https" + ] + }, + "hostname": { + "type": "string", + "minLength": 1, + "maxLength": 256 + }, + "port": { + "type": "string", + "minLength": 0, + "maxLength": 5 + }, + "pathname": { + "type": "string", + "minLength": 1, + "maxLength": 256 + }, + "search": { + "type": "string", + "minLength": 0, + "maxLength": 256 + } + } + } + }, + "sizes": { + "type": "array", + "minItems": 1, + "maxItems": 50, + "items": { + "type": "number" + } + } + } + }, + "name": { + "description": "A name for the deployment", + "type": "string" + }, + "public": { + "description": "Whether a deployment's source and logs are available publicly", + "type": "boolean" + }, + "redirects": { + "title": "Redirects", + "type": "array", + "maxItems": 2048, + "description": "A list of redirect definitions.", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "source", + "destination" + ], + "properties": { + "source": { + "description": "A pattern that matches each incoming pathname (excluding querystring).", + "type": "string", + "maxLength": 4096 + }, + "destination": { + "description": "A location destination defined as an absolute pathname or external URL.", + "type": "string", + "maxLength": 4096 + }, + "permanent": { + "description": "A boolean to toggle between permanent and temporary redirect. When `true`, the status code is `308`. When `false` the status code is `307`.", + "type": "boolean" + }, + "statusCode": { + "description": "An optional integer to define the status code of the redirect.", + "private": true, + "type": "integer", + "minimum": 100, + "maximum": 999 + }, + "has": { + "description": "An array of requirements that are needed to match", + "type": "array", + "maxItems": 16, + "items": { + "anyOf": [ + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "value" + ], + "properties": { + "type": { + "description": "The type of request element to check", + "type": "string", + "enum": [ + "host" + ] + }, + "value": { + "description": "A value to match against. Can be a string (regex) or a condition operation object", + "anyOf": [ + { + "description": "A regular expression used to match thev value. Named groups can be used in the destination.", + "type": "string", + "maxLength": 4096 + }, + { + "description": "A condition operation object", + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "eq": { + "description": "Equal to", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "number" + } + ] + }, + "neq": { + "description": "Not equal", + "type": "string", + "maxLength": 4096 + }, + "inc": { + "description": "In array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "ninc": { + "description": "Not in array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "pre": { + "description": "Starts with", + "type": "string", + "maxLength": 4096 + }, + "suf": { + "description": "Ends with", + "type": "string", + "maxLength": 4096 + }, + "re": { + "description": "Regex", + "type": "string", + "maxLength": 4096 + }, + "gt": { + "description": "Greater than", + "type": "number" + }, + "gte": { + "description": "Greater than or equal to", + "type": "number" + }, + "lt": { + "description": "Less than", + "type": "number" + }, + "lte": { + "description": "Less than or equal to", + "type": "number" + } + } + } + ] + } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "key" + ], + "properties": { + "type": { + "description": "The type of request element to check", + "type": "string", + "enum": [ + "header", + "cookie", + "query" + ] + }, + "key": { + "description": "The name of the element contained in the particular type", + "type": "string", + "maxLength": 4096 + }, + "value": { + "description": "A value to match against. Can be a string (regex) or a condition operation object", + "anyOf": [ + { + "description": "A regular expression used to match thev value. Named groups can be used in the destination.", + "type": "string", + "maxLength": 4096 + }, + { + "description": "A condition operation object", + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "eq": { + "description": "Equal to", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "number" + } + ] + }, + "neq": { + "description": "Not equal", + "type": "string", + "maxLength": 4096 + }, + "inc": { + "description": "In array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "ninc": { + "description": "Not in array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "pre": { + "description": "Starts with", + "type": "string", + "maxLength": 4096 + }, + "suf": { + "description": "Ends with", + "type": "string", + "maxLength": 4096 + }, + "re": { + "description": "Regex", + "type": "string", + "maxLength": 4096 + }, + "gt": { + "description": "Greater than", + "type": "number" + }, + "gte": { + "description": "Greater than or equal to", + "type": "number" + }, + "lt": { + "description": "Less than", + "type": "number" + }, + "lte": { + "description": "Less than or equal to", + "type": "number" + } + } + } + ] + } + } + } + ] + } + }, + "missing": { + "description": "An array of requirements that are needed to match", + "type": "array", + "maxItems": 16, + "items": { + "anyOf": [ + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "value" + ], + "properties": { + "type": { + "description": "The type of request element to check", + "type": "string", + "enum": [ + "host" + ] + }, + "value": { + "description": "A value to match against. Can be a string (regex) or a condition operation object", + "anyOf": [ + { + "description": "A regular expression used to match thev value. Named groups can be used in the destination.", + "type": "string", + "maxLength": 4096 + }, + { + "description": "A condition operation object", + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "eq": { + "description": "Equal to", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "number" + } + ] + }, + "neq": { + "description": "Not equal", + "type": "string", + "maxLength": 4096 + }, + "inc": { + "description": "In array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "ninc": { + "description": "Not in array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "pre": { + "description": "Starts with", + "type": "string", + "maxLength": 4096 + }, + "suf": { + "description": "Ends with", + "type": "string", + "maxLength": 4096 + }, + "re": { + "description": "Regex", + "type": "string", + "maxLength": 4096 + }, + "gt": { + "description": "Greater than", + "type": "number" + }, + "gte": { + "description": "Greater than or equal to", + "type": "number" + }, + "lt": { + "description": "Less than", + "type": "number" + }, + "lte": { + "description": "Less than or equal to", + "type": "number" + } + } + } + ] + } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "key" + ], + "properties": { + "type": { + "description": "The type of request element to check", + "type": "string", + "enum": [ + "header", + "cookie", + "query" + ] + }, + "key": { + "description": "The name of the element contained in the particular type", + "type": "string", + "maxLength": 4096 + }, + "value": { + "description": "A value to match against. Can be a string (regex) or a condition operation object", + "anyOf": [ + { + "description": "A regular expression used to match thev value. Named groups can be used in the destination.", + "type": "string", + "maxLength": 4096 + }, + { + "description": "A condition operation object", + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "eq": { + "description": "Equal to", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "number" + } + ] + }, + "neq": { + "description": "Not equal", + "type": "string", + "maxLength": 4096 + }, + "inc": { + "description": "In array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "ninc": { + "description": "Not in array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "pre": { + "description": "Starts with", + "type": "string", + "maxLength": 4096 + }, + "suf": { + "description": "Ends with", + "type": "string", + "maxLength": 4096 + }, + "re": { + "description": "Regex", + "type": "string", + "maxLength": 4096 + }, + "gt": { + "description": "Greater than", + "type": "number" + }, + "gte": { + "description": "Greater than or equal to", + "type": "number" + }, + "lt": { + "description": "Less than", + "type": "number" + }, + "lte": { + "description": "Less than or equal to", + "type": "number" + } + } + } + ] + } + } + } + ] + } + }, + "env": { + "description": "An array of environment variable names that should be replaced at runtime in the destination", + "type": "array", + "minItems": 1, + "maxItems": 64, + "items": { + "type": "string", + "maxLength": 256 + } + } + } + } + }, + "bulkRedirectsPath": { + "description": "The path to a file containing bulk redirects; supports JSON, JSONL, and CSV", + "maxLength": 256, + "type": [ + "string", + "null" + ] + }, + "regions": { + "description": "An array of the regions the deployment's Serverless Functions should be deployed to", + "example": [ + "sfo", + "bru" + ], + "items": { + "maxLength": 256, + "type": "string" + }, + "maxItems": 1000, + "minItems": 1, + "type": "array" + }, + "rewrites": { + "type": "array", + "maxItems": 2048, + "description": "A list of rewrite definitions.", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "source", + "destination" + ], + "properties": { + "source": { + "description": "A pattern that matches each incoming pathname (excluding querystring).", + "type": "string", + "maxLength": 4096 + }, + "destination": { + "description": "An absolute pathname to an existing resource or an external URL.", + "type": "string", + "maxLength": 4096 + }, + "has": { + "description": "An array of requirements that are needed to match", + "type": "array", + "maxItems": 16, + "items": { + "anyOf": [ + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "value" + ], + "properties": { + "type": { + "description": "The type of request element to check", + "type": "string", + "enum": [ + "host" + ] + }, + "value": { + "description": "A value to match against. Can be a string (regex) or a condition operation object", + "anyOf": [ + { + "description": "A regular expression used to match thev value. Named groups can be used in the destination.", + "type": "string", + "maxLength": 4096 + }, + { + "description": "A condition operation object", + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "eq": { + "description": "Equal to", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "number" + } + ] + }, + "neq": { + "description": "Not equal", + "type": "string", + "maxLength": 4096 + }, + "inc": { + "description": "In array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "ninc": { + "description": "Not in array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "pre": { + "description": "Starts with", + "type": "string", + "maxLength": 4096 + }, + "suf": { + "description": "Ends with", + "type": "string", + "maxLength": 4096 + }, + "re": { + "description": "Regex", + "type": "string", + "maxLength": 4096 + }, + "gt": { + "description": "Greater than", + "type": "number" + }, + "gte": { + "description": "Greater than or equal to", + "type": "number" + }, + "lt": { + "description": "Less than", + "type": "number" + }, + "lte": { + "description": "Less than or equal to", + "type": "number" + } + } + } + ] + } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "key" + ], + "properties": { + "type": { + "description": "The type of request element to check", + "type": "string", + "enum": [ + "header", + "cookie", + "query" + ] + }, + "key": { + "description": "The name of the element contained in the particular type", + "type": "string", + "maxLength": 4096 + }, + "value": { + "description": "A value to match against. Can be a string (regex) or a condition operation object", + "anyOf": [ + { + "description": "A regular expression used to match thev value. Named groups can be used in the destination.", + "type": "string", + "maxLength": 4096 + }, + { + "description": "A condition operation object", + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "eq": { + "description": "Equal to", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "number" + } + ] + }, + "neq": { + "description": "Not equal", + "type": "string", + "maxLength": 4096 + }, + "inc": { + "description": "In array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "ninc": { + "description": "Not in array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "pre": { + "description": "Starts with", + "type": "string", + "maxLength": 4096 + }, + "suf": { + "description": "Ends with", + "type": "string", + "maxLength": 4096 + }, + "re": { + "description": "Regex", + "type": "string", + "maxLength": 4096 + }, + "gt": { + "description": "Greater than", + "type": "number" + }, + "gte": { + "description": "Greater than or equal to", + "type": "number" + }, + "lt": { + "description": "Less than", + "type": "number" + }, + "lte": { + "description": "Less than or equal to", + "type": "number" + } + } + } + ] + } + } + } + ] + } + }, + "missing": { + "description": "An array of requirements that are needed to match", + "type": "array", + "maxItems": 16, + "items": { + "anyOf": [ + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "value" + ], + "properties": { + "type": { + "description": "The type of request element to check", + "type": "string", + "enum": [ + "host" + ] + }, + "value": { + "description": "A value to match against. Can be a string (regex) or a condition operation object", + "anyOf": [ + { + "description": "A regular expression used to match thev value. Named groups can be used in the destination.", + "type": "string", + "maxLength": 4096 + }, + { + "description": "A condition operation object", + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "eq": { + "description": "Equal to", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "number" + } + ] + }, + "neq": { + "description": "Not equal", + "type": "string", + "maxLength": 4096 + }, + "inc": { + "description": "In array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "ninc": { + "description": "Not in array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "pre": { + "description": "Starts with", + "type": "string", + "maxLength": 4096 + }, + "suf": { + "description": "Ends with", + "type": "string", + "maxLength": 4096 + }, + "re": { + "description": "Regex", + "type": "string", + "maxLength": 4096 + }, + "gt": { + "description": "Greater than", + "type": "number" + }, + "gte": { + "description": "Greater than or equal to", + "type": "number" + }, + "lt": { + "description": "Less than", + "type": "number" + }, + "lte": { + "description": "Less than or equal to", + "type": "number" + } + } + } + ] + } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "key" + ], + "properties": { + "type": { + "description": "The type of request element to check", + "type": "string", + "enum": [ + "header", + "cookie", + "query" + ] + }, + "key": { + "description": "The name of the element contained in the particular type", + "type": "string", + "maxLength": 4096 + }, + "value": { + "description": "A value to match against. Can be a string (regex) or a condition operation object", + "anyOf": [ + { + "description": "A regular expression used to match thev value. Named groups can be used in the destination.", + "type": "string", + "maxLength": 4096 + }, + { + "description": "A condition operation object", + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "eq": { + "description": "Equal to", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "number" + } + ] + }, + "neq": { + "description": "Not equal", + "type": "string", + "maxLength": 4096 + }, + "inc": { + "description": "In array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "ninc": { + "description": "Not in array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "pre": { + "description": "Starts with", + "type": "string", + "maxLength": 4096 + }, + "suf": { + "description": "Ends with", + "type": "string", + "maxLength": 4096 + }, + "re": { + "description": "Regex", + "type": "string", + "maxLength": 4096 + }, + "gt": { + "description": "Greater than", + "type": "number" + }, + "gte": { + "description": "Greater than or equal to", + "type": "number" + }, + "lt": { + "description": "Less than", + "type": "number" + }, + "lte": { + "description": "Less than or equal to", + "type": "number" + } + } + } + ] + } + } + } + ] + } + }, + "statusCode": { + "description": "An optional integer to override the status code of the response.", + "type": "integer", + "minimum": 100, + "maximum": 999 + }, + "env": { + "description": "An array of environment variable names that should be replaced at runtime in the destination", + "type": "array", + "minItems": 1, + "maxItems": 64, + "items": { + "type": "string", + "maxLength": 256 + } + }, + "respectOriginCacheControl": { + "description": "When set to true (default), external rewrites will respect the Cache-Control header from the origin. When false, caching is disabled for this rewrite.", + "type": "boolean" + } + } + } + }, + "routes": { + "type": "array", + "description": "A list of routes objects used to rewrite paths to point towards other internal or external paths", + "example": [ + { + "dest": "https://docs.example.com", + "src": "/docs" + } + ], + "items": { + "anyOf": [ + { + "type": "object", + "anyOf": [ + { + "required": [ + "src" + ] + }, + { + "required": [ + "source" + ] + } + ], + "additionalProperties": false, + "properties": { + "src": { + "type": "string", + "maxLength": 4096 + }, + "source": { + "type": "string", + "maxLength": 4096 + }, + "dest": { + "type": "string", + "maxLength": 4096 + }, + "destination": { + "type": "string", + "maxLength": 4096 + }, + "headers": { + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "maxProperties": 100, + "patternProperties": { + "^.{1,256}$": { + "type": "string", + "maxLength": 32768 + } + } + }, + "methods": { + "type": "array", + "maxItems": 10, + "items": { + "type": "string", + "maxLength": 32 + } + }, + "caseSensitive": { + "type": "boolean" + }, + "important": { + "deprecated": true, + "type": "boolean" + }, + "user": { + "type": "boolean" + }, + "continue": { + "type": "boolean" + }, + "override": { + "deprecated": true, + "type": "boolean" + }, + "check": { + "type": "boolean" + }, + "isInternal": { + "type": "boolean" + }, + "status": { + "type": "integer", + "minimum": 100, + "maximum": 999 + }, + "statusCode": { + "type": "integer", + "minimum": 100, + "maximum": 999 + }, + "locale": { + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "redirect": { + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "maxProperties": 100, + "patternProperties": { + "^.{1,256}$": { + "type": "string", + "maxLength": 4096 + } + } + }, + "value": { + "type": "string", + "maxLength": 4096 + }, + "path": { + "type": "string", + "maxLength": 4096 + }, + "cookie": { + "type": "string", + "maxLength": 4096 + }, + "default": { + "type": "string", + "maxLength": 4096 + } + } + }, + "middleware": { + "type": "number" + }, + "middlewarePath": { + "type": "string" + }, + "middlewareRawSrc": { + "type": "array", + "items": { + "type": "string" + } + }, + "has": { + "description": "An array of requirements that are needed to match", + "type": "array", + "maxItems": 16, + "items": { + "anyOf": [ + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "value" + ], + "properties": { + "type": { + "description": "The type of request element to check", + "type": "string", + "enum": [ + "host" + ] + }, + "value": { + "description": "A value to match against. Can be a string (regex) or a condition operation object", + "anyOf": [ + { + "description": "A regular expression used to match thev value. Named groups can be used in the destination.", + "type": "string", + "maxLength": 4096 + }, + { + "description": "A condition operation object", + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "eq": { + "description": "Equal to", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "number" + } + ] + }, + "neq": { + "description": "Not equal", + "type": "string", + "maxLength": 4096 + }, + "inc": { + "description": "In array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "ninc": { + "description": "Not in array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "pre": { + "description": "Starts with", + "type": "string", + "maxLength": 4096 + }, + "suf": { + "description": "Ends with", + "type": "string", + "maxLength": 4096 + }, + "re": { + "description": "Regex", + "type": "string", + "maxLength": 4096 + }, + "gt": { + "description": "Greater than", + "type": "number" + }, + "gte": { + "description": "Greater than or equal to", + "type": "number" + }, + "lt": { + "description": "Less than", + "type": "number" + }, + "lte": { + "description": "Less than or equal to", + "type": "number" + } + } + } + ] + } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "key" + ], + "properties": { + "type": { + "description": "The type of request element to check", + "type": "string", + "enum": [ + "header", + "cookie", + "query" + ] + }, + "key": { + "description": "The name of the element contained in the particular type", + "type": "string", + "maxLength": 4096 + }, + "value": { + "description": "A value to match against. Can be a string (regex) or a condition operation object", + "anyOf": [ + { + "description": "A regular expression used to match thev value. Named groups can be used in the destination.", + "type": "string", + "maxLength": 4096 + }, + { + "description": "A condition operation object", + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "eq": { + "description": "Equal to", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "number" + } + ] + }, + "neq": { + "description": "Not equal", + "type": "string", + "maxLength": 4096 + }, + "inc": { + "description": "In array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "ninc": { + "description": "Not in array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "pre": { + "description": "Starts with", + "type": "string", + "maxLength": 4096 + }, + "suf": { + "description": "Ends with", + "type": "string", + "maxLength": 4096 + }, + "re": { + "description": "Regex", + "type": "string", + "maxLength": 4096 + }, + "gt": { + "description": "Greater than", + "type": "number" + }, + "gte": { + "description": "Greater than or equal to", + "type": "number" + }, + "lt": { + "description": "Less than", + "type": "number" + }, + "lte": { + "description": "Less than or equal to", + "type": "number" + } + } + } + ] + } + } + } + ] + } + }, + "missing": { + "description": "An array of requirements that are needed to match", + "type": "array", + "maxItems": 16, + "items": { + "anyOf": [ + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "value" + ], + "properties": { + "type": { + "description": "The type of request element to check", + "type": "string", + "enum": [ + "host" + ] + }, + "value": { + "description": "A value to match against. Can be a string (regex) or a condition operation object", + "anyOf": [ + { + "description": "A regular expression used to match thev value. Named groups can be used in the destination.", + "type": "string", + "maxLength": 4096 + }, + { + "description": "A condition operation object", + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "eq": { + "description": "Equal to", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "number" + } + ] + }, + "neq": { + "description": "Not equal", + "type": "string", + "maxLength": 4096 + }, + "inc": { + "description": "In array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "ninc": { + "description": "Not in array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "pre": { + "description": "Starts with", + "type": "string", + "maxLength": 4096 + }, + "suf": { + "description": "Ends with", + "type": "string", + "maxLength": 4096 + }, + "re": { + "description": "Regex", + "type": "string", + "maxLength": 4096 + }, + "gt": { + "description": "Greater than", + "type": "number" + }, + "gte": { + "description": "Greater than or equal to", + "type": "number" + }, + "lt": { + "description": "Less than", + "type": "number" + }, + "lte": { + "description": "Less than or equal to", + "type": "number" + } + } + } + ] + } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "key" + ], + "properties": { + "type": { + "description": "The type of request element to check", + "type": "string", + "enum": [ + "header", + "cookie", + "query" + ] + }, + "key": { + "description": "The name of the element contained in the particular type", + "type": "string", + "maxLength": 4096 + }, + "value": { + "description": "A value to match against. Can be a string (regex) or a condition operation object", + "anyOf": [ + { + "description": "A regular expression used to match thev value. Named groups can be used in the destination.", + "type": "string", + "maxLength": 4096 + }, + { + "description": "A condition operation object", + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "eq": { + "description": "Equal to", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "number" + } + ] + }, + "neq": { + "description": "Not equal", + "type": "string", + "maxLength": 4096 + }, + "inc": { + "description": "In array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "ninc": { + "description": "Not in array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "pre": { + "description": "Starts with", + "type": "string", + "maxLength": 4096 + }, + "suf": { + "description": "Ends with", + "type": "string", + "maxLength": 4096 + }, + "re": { + "description": "Regex", + "type": "string", + "maxLength": 4096 + }, + "gt": { + "description": "Greater than", + "type": "number" + }, + "gte": { + "description": "Greater than or equal to", + "type": "number" + }, + "lt": { + "description": "Less than", + "type": "number" + }, + "lte": { + "description": "Less than or equal to", + "type": "number" + } + } + } + ] + } + } + } + ] + } + }, + "mitigate": { + "description": "Mitigation action to take on a route", + "type": "object", + "additionalProperties": false, + "required": [ + "action" + ], + "properties": { + "action": { + "description": "The mitigation action to take", + "type": "string", + "enum": [ + "challenge", + "deny" + ] + } + } + }, + "transforms": { + "description": "A list of transform rules to adjust the query parameters of a request or HTTP headers of request or response", + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "type", + "op", + "target" + ], + "properties": { + "type": { + "description": "The scope of the transform to apply", + "type": "string", + "enum": [ + "request.headers", + "request.query", + "response.headers" + ] + }, + "op": { + "description": "The operation to perform on the target", + "type": "string", + "enum": [ + "append", + "set", + "delete" + ] + }, + "target": { + "description": "The target of the transform", + "type": "object", + "required": [ + "key" + ], + "properties": { + "key": { + "description": "A value to match against. Can be a string or a condition operation object (without regex support)", + "anyOf": [ + { + "description": "A valid header name (letters, numbers, hyphens, underscores)", + "type": "string", + "maxLength": 4096 + }, + { + "description": "A condition operation object", + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "eq": { + "description": "Equal to", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "number" + } + ] + }, + "neq": { + "description": "Not equal", + "type": "string", + "maxLength": 4096 + }, + "inc": { + "description": "In array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "ninc": { + "description": "Not in array", + "type": "array", + "items": { + "type": "string", + "maxLength": 4096 + } + }, + "pre": { + "description": "Starts with", + "type": "string", + "maxLength": 4096 + }, + "suf": { + "description": "Ends with", + "type": "string", + "maxLength": 4096 + }, + "gt": { + "description": "Greater than", + "type": "number" + }, + "gte": { + "description": "Greater than or equal to", + "type": "number" + }, + "lt": { + "description": "Less than", + "type": "number" + }, + "lte": { + "description": "Less than or equal to", + "type": "number" + } + } + } + ] + } + } + }, + "args": { + "description": "The arguments to the operation", + "anyOf": [ + { + "type": "string", + "maxLength": 4096 + }, + { + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "maxLength": 4096 + } + } + ] + }, + "env": { + "description": "An array of environment variable names that should be replaced at runtime in the args value", + "type": "array", + "minItems": 1, + "maxItems": 64, + "items": { + "type": "string", + "maxLength": 256 + } + } + }, + "allOf": [ + { + "if": { + "properties": { + "op": { + "enum": [ + "append", + "set" + ] + } + } + }, + "then": { + "required": [ + "args" + ] + } + }, + { + "if": { + "allOf": [ + { + "properties": { + "type": { + "enum": [ + "request.headers", + "response.headers" + ] + } + } + }, + { + "properties": { + "op": { + "enum": [ + "set", + "append" + ] + } + } + } + ] + }, + "then": { + "properties": { + "target": { + "properties": { + "key": { + "if": { + "type": "string" + }, + "then": { + "pattern": "^[a-zA-Z0-9_-]+$" + } + } + } + }, + "args": { + "anyOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9_ :;.,\"'?!(){}\\[\\]@<>=+*#$&`|~\\^%/-]+$" + }, + { + "type": "array", + "items": { + "type": "string", + "pattern": "^[a-zA-Z0-9_ :;.,\"'?!(){}\\[\\]@<>=+*#$&`|~\\^%/-]+$" + } + } + ] + } + } + } + } + ] + } + }, + "env": { + "description": "An array of environment variable names that should be replaced at runtime in the destination or headers", + "type": "array", + "minItems": 1, + "maxItems": 64, + "items": { + "type": "string", + "maxLength": 256 + } + }, + "respectOriginCacheControl": { + "description": "When set to true (default), external rewrites will respect the Cache-Control header from the origin. When false, caching is disabled for this rewrite.", + "type": "boolean" + } + } + }, + { + "type": "object", + "deprecated": true, + "required": [ + "handle" + ], + "additionalProperties": false, + "properties": { + "handle": { + "type": "string", + "maxLength": 32, + "enum": [ + "error", + "filesystem", + "hit", + "miss", + "resource", + "rewrite" + ] + } + } + } + ] + } + }, + "scope": { + "description": "This property determines the scope (user or team) under which the project will be deployed by Vercel CLI.", + "type": "string", + "private": true + }, + "trailingSlash": { + "description": "When `false`, visiting a path that ends with a forward slash will respond with a `308` status code and redirect to the path without the trailing slash.", + "type": "boolean" + }, + "version": { + "maximum": 2, + "minimum": 2, + "private": true, + "type": "integer" + }, + "wildcard": { + "private": true, + "items": { + "additionalProperties": false, + "properties": { + "domain": { + "maxLength": 255, + "minLength": 1, + "type": "string" + }, + "value": { + "maxLength": 1024, + "minLength": 0, + "type": "string" + } + }, + "required": [ + "domain", + "value" + ], + "type": "object" + }, + "maxItems": 25, + "minItems": 1, + "type": "array" + }, + "buildCommand": { + "description": "The build command for this project. When `null` is used this value will be automatically detected", + "maxLength": 256, + "type": [ + "string", + "null" + ] + }, + "ignoreCommand": { + "maxLength": 256, + "type": [ + "string", + "null" + ] + }, + "devCommand": { + "description": "The dev command for this project. When `null` is used this value will be automatically detected", + "maxLength": 256, + "type": [ + "string", + "null" + ] + }, + "framework": { + "description": "The framework that is being used for this project. When `null` is used no framework is selected", + "type": [ + "null", + "string" + ], + "enum": [ + "blitzjs", + "nextjs", + "gatsby", + "remix", + "react-router", + "astro", + "hexo", + "eleventy", + "docusaurus-2", + "docusaurus", + "preact", + "solidstart-1", + "solidstart", + "dojo", + "ember", + "vue", + "scully", + "ionic-angular", + "angular", + "polymer", + "svelte", + "sveltekit", + "sveltekit-1", + "ionic-react", + "create-react-app", + "gridsome", + "umijs", + "sapper", + "saber", + "stencil", + "nuxtjs", + "redwoodjs", + "hugo", + "jekyll", + "brunch", + "middleman", + "zola", + "hydrogen", + "vite", + "tanstack-start", + "vitepress", + "vuepress", + "parcel", + "fastapi", + "flask", + "fasthtml", + "django", + "sanity-v3", + "sanity", + "storybook", + "nitro", + "hono", + "express", + "h3", + "koa", + "nestjs", + "elysia", + "fastify", + "xmcp", + "python", + "ruby", + "rust", + "node", + "go", + "services", + null + ] + }, + "installCommand": { + "description": "The install command for this project. When `null` is used this value will be automatically detected", + "maxLength": 256, + "type": [ + "string", + "null" + ] + }, + "outputDirectory": { + "description": "The output directory of the project. When `null` is used this value will be automatically detected", + "maxLength": 256, + "type": [ + "string", + "null" + ] + }, + "crons": { + "description": "An array of cron jobs that should be created for production Deployments.", + "type": "array", + "maxItems": 100, + "items": { + "type": "object", + "required": [ + "schedule", + "path" + ], + "properties": { + "schedule": { + "type": "string", + "minLength": 9, + "maxLength": 256 + }, + "path": { + "type": "string", + "maxLength": 512, + "pattern": "^/.*" + } + } + } + }, + "relatedProjects": { + "description": "An array of projectIds to associate with the current project.", + "type": "array", + "items": { + "type": "string", + "maxItems": 3 + }, + "maxItems": 10 + }, + "fluid": { + "description": "Enables Fluid compute for the project. It's enabled by default for new projects.", + "type": "boolean" + }, + "bunVersion": { + "description": "Enables Bun for the project and specifies the version to use.", + "type": "string" + }, + "experimentalServices": { + "private": true, + "description": "Enables configuration of multiple services in a single deployment. Map of service name to service configuration.", + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": false, + "properties": { + "type": { + "description": "Service type: web, cron, or worker. Defaults to web.", + "enum": [ + "web", + "cron", + "worker" + ] + }, + "entrypoint": { + "description": "Entry file for the service, relative to the workspace directory.", + "type": "string", + "minLength": 1, + "maxLength": 512 + }, + "workspace": { + "description": "Path to the directory containing the service manifest file (package.json, pyproject.toml, etc.). Defaults to \".\" (project root).", + "type": "string", + "minLength": 1, + "maxLength": 512 + }, + "routePrefix": { + "description": "URL prefix for routing (web services only).", + "type": "string", + "minLength": 1, + "maxLength": 512 + }, + "subdomain": { + "description": "Subdomain for host-based routing (web services only).", + "type": "string", + "minLength": 1, + "maxLength": 63 + }, + "framework": { + "description": "Framework to use.", + "type": "string", + "minLength": 1, + "maxLength": 256 + }, + "builder": { + "description": "Builder to use, e.g. @vercel/node, @vercel/python.", + "type": "string", + "minLength": 1, + "maxLength": 256 + }, + "runtime": { + "description": "Specific lambda runtime to use, e.g. nodejs24.x, python3.14.", + "type": "string", + "minLength": 1, + "maxLength": 256 + }, + "buildCommand": { + "description": "Build command for the service.", + "type": "string", + "minLength": 1, + "maxLength": 2048 + }, + "installCommand": { + "description": "Install command for the service.", + "type": "string", + "minLength": 1, + "maxLength": 2048 + }, + "memory": { + "description": "Memory allocation in MB (128-10240).", + "type": "integer", + "minimum": 128, + "maximum": 10240 + }, + "maxDuration": { + "description": "Max duration in seconds (1-900), or \"max\" to use the maximum allowed by your plan.", + "oneOf": [ + { + "type": "integer", + "minimum": 1, + "maximum": 900 + }, + { + "type": "string", + "enum": [ + "max" + ] + } + ] + }, + "includeFiles": { + "description": "Files to include in bundle.", + "oneOf": [ + { + "type": "string", + "minLength": 1 + }, + { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + } + ] + }, + "excludeFiles": { + "description": "Files to exclude from bundle.", + "oneOf": [ + { + "type": "string", + "minLength": 1 + }, + { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + } + ] + }, + "schedule": { + "description": "Cron schedule expression (e.g., \"0 0 * * *\"). Required for cron services.", + "type": "string", + "minLength": 9, + "maxLength": 256 + }, + "topic": { + "description": "Topic name for worker subscription.", + "type": "string", + "minLength": 1, + "maxLength": 256 + }, + "topics": { + "description": "Multiple topic names for worker subscription.", + "type": "array", + "items": { + "type": "string", + "minLength": 1, + "maxLength": 256 + }, + "minItems": 1 + }, + "consumer": { + "description": "Consumer group name for worker subscription.", + "type": "string", + "minLength": 1, + "maxLength": 256 + } + } + } + }, + "experimentalServiceGroups": { + "private": true, + "description": "Enables grouping of services. Map of service group name to an array of service names belonging to that group.", + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string", + "minLength": 1, + "maxLength": 256 + } + } + } + } +} diff --git a/api/[...route].js b/api/[...route].js new file mode 100644 index 0000000..0a4da38 --- /dev/null +++ b/api/[...route].js @@ -0,0 +1 @@ +module.exports = require('../server'); diff --git a/cors.json b/cors.json deleted file mode 100644 index be0dc5c..0000000 --- a/cors.json +++ /dev/null @@ -1,8 +0,0 @@ -[ - { - "origin": ["http://localhost:8000", "http://localhost:3000", "https://yourdomain.com"], - "method": ["GET", "HEAD", "DELETE", "POST", "PUT"], - "responseHeader": ["Content-Type", "x-goog-meta-uploaded-name"], - "maxAgeSeconds": 3600 - } -] diff --git a/firebase.json b/firebase.json deleted file mode 100644 index e782939..0000000 --- a/firebase.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "hosting": { - "public": "public", - "ignore": [ - "firebase.json", - "**/.*", - "**/node_modules/**" - ] - } -} diff --git a/package-lock.json b/package-lock.json index a1c405e..61ea814 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,6 @@ "name": "dee-blog-admin", "version": "1.0.0", "dependencies": { - "@google/genai": "^1.29.0", "@tailwindcss/vite": "^4.2.2", "@vercel/blob": "^2.3.1", "clsx": "^2.1.1", @@ -19,7 +18,7 @@ "firebase-admin": "^13.7.0", "lucide-react": "^0.546.0", "motion": "^12.23.24", - "multer": "^1.4.5-lts.1", + "multer": "^2.0.2", "react": "^18.3.1", "react-dom": "^18.3.1", "react-router-dom": "^7.13.1", @@ -1481,29 +1480,6 @@ "uuid": "dist/bin/uuid" } }, - "node_modules/@google/genai": { - "version": "1.46.0", - "resolved": "https://registry.npmjs.org/@google/genai/-/genai-1.46.0.tgz", - "integrity": "sha512-ewPMN5JkKfgU5/kdco9ZhXBHDPhVqZpMQqIFQhwsHLf8kyZfx1cNpw1pHo1eV6PGEW7EhIBFi3aYZraFndAXqg==", - "license": "Apache-2.0", - "dependencies": { - "google-auth-library": "^10.3.0", - "p-retry": "^4.6.2", - "protobufjs": "^7.5.4", - "ws": "^8.18.0" - }, - "engines": { - "node": ">=20.0.0" - }, - "peerDependencies": { - "@modelcontextprotocol/sdk": "^1.25.2" - }, - "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - } - } - }, "node_modules/@grpc/grpc-js": { "version": "1.9.15", "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.9.15.tgz", @@ -2604,12 +2580,6 @@ "form-data": "^2.5.5" } }, - "node_modules/@types/retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", - "license": "MIT" - }, "node_modules/@types/send": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/@types/send/-/send-1.2.1.tgz", @@ -3109,50 +3079,20 @@ } }, "node_modules/concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz", + "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==", "engines": [ - "node >= 0.8" + "node >= 6.0" ], "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "inherits": "^2.0.3", - "readable-stream": "^2.2.2", + "readable-stream": "^3.0.2", "typedarray": "^0.0.6" } }, - "node_modules/concat-stream/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/concat-stream/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "license": "MIT" - }, - "node_modules/concat-stream/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, "node_modules/concurrently": { "version": "9.2.1", "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-9.2.1.tgz", @@ -3221,12 +3161,6 @@ "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==", "license": "MIT" }, - "node_modules/core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "license": "MIT" - }, "node_modules/cors": { "version": "2.8.6", "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz", @@ -4667,12 +4601,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "license": "MIT" - }, "node_modules/jiti": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", @@ -5267,27 +5195,6 @@ "node": ">= 0.6" } }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "license": "MIT", - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, "node_modules/motion": { "version": "12.38.0", "resolved": "https://registry.npmjs.org/motion/-/motion-12.38.0.tgz", @@ -5336,22 +5243,22 @@ "license": "MIT" }, "node_modules/multer": { - "version": "1.4.5-lts.2", - "resolved": "https://registry.npmjs.org/multer/-/multer-1.4.5-lts.2.tgz", - "integrity": "sha512-VzGiVigcG9zUAoCNU+xShztrlr1auZOlurXynNvO9GiWD1/mTBbUljOKY+qMeazBqXgRnjzeEgJI/wyjJUHg9A==", - "deprecated": "Multer 1.x is impacted by a number of vulnerabilities, which have been patched in 2.x. You should upgrade to the latest 2.x version.", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/multer/-/multer-2.1.1.tgz", + "integrity": "sha512-mo+QTzKlx8R7E5ylSXxWzGoXoZbOsRMpyitcht8By2KHvMbf3tjwosZ/Mu/XYU6UuJ3VZnODIrak5ZrPiPyB6A==", "license": "MIT", "dependencies": { "append-field": "^1.0.0", - "busboy": "^1.0.0", - "concat-stream": "^1.5.2", - "mkdirp": "^0.5.4", - "object-assign": "^4.1.1", - "type-is": "^1.6.4", - "xtend": "^4.0.0" + "busboy": "^1.6.0", + "concat-stream": "^2.0.0", + "type-is": "^1.6.18" }, "engines": { - "node": ">= 6.0.0" + "node": ">= 10.16.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/nanoid": { @@ -5507,19 +5414,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/p-retry": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", - "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", - "license": "MIT", - "dependencies": { - "@types/retry": "0.12.0", - "retry": "^0.13.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", @@ -5604,12 +5498,6 @@ "dev": true, "license": "MIT" }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "license": "MIT" - }, "node_modules/proto3-json-serializer": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/proto3-json-serializer/-/proto3-json-serializer-2.0.2.tgz", @@ -5820,7 +5708,6 @@ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "license": "MIT", - "optional": true, "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -6234,7 +6121,6 @@ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", "license": "MIT", - "optional": true, "dependencies": { "safe-buffer": "~5.2.0" } @@ -7241,36 +7127,6 @@ "license": "ISC", "optional": true }, - "node_modules/ws": { - "version": "8.19.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.19.0.tgz", - "integrity": "sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg==", - "license": "MIT", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "license": "MIT", - "engines": { - "node": ">=0.4" - } - }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", diff --git a/package.json b/package.json index 051710b..3e86760 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,24 @@ { + "$schema": "./.vscode/schemas/package.schema.json", "name": "dee-blog-admin", "version": "1.0.0", "description": "Blog admin panel with backend upload proxy", + "engines": { + "node": "22.x" + }, "main": "server.js", "scripts": { "start": "node server.js", "dev": "concurrently -k -n client,server -c blue,green \"npm run dev:client\" \"npm run dev:server\"", "dev:client": "vite --port 8000", "dev:server": "node server.js", - "build": "vite build", + "build": "vite build && node scripts/copy-media-to-dist.mjs", "preview": "vite preview", "clean": "rm -rf dist", "lint": "tsc --noEmit", "test": "node scripts/smoke-test.mjs" }, "dependencies": { - "@google/genai": "^1.29.0", "@tailwindcss/vite": "^4.2.2", "@vercel/blob": "^2.3.1", "clsx": "^2.1.1", @@ -26,7 +29,7 @@ "firebase-admin": "^13.7.0", "lucide-react": "^0.546.0", "motion": "^12.23.24", - "multer": "^1.4.5-lts.1", + "multer": "^2.0.2", "react": "^18.3.1", "react-dom": "^18.3.1", "react-router-dom": "^7.13.1", diff --git a/scripts/copy-media-to-dist.mjs b/scripts/copy-media-to-dist.mjs new file mode 100644 index 0000000..84793fe --- /dev/null +++ b/scripts/copy-media-to-dist.mjs @@ -0,0 +1,17 @@ +import fs from 'node:fs'; +import path from 'node:path'; + +const projectRoot = process.cwd(); +const mediaDir = path.join(projectRoot, 'media'); +const distMediaDir = path.join(projectRoot, 'dist', 'media'); + +if (!fs.existsSync(mediaDir)) { + console.warn('[build] media/ directory not found; skipping media copy.'); + process.exit(0); +} + +fs.rmSync(distMediaDir, { recursive: true, force: true }); +fs.mkdirSync(path.dirname(distMediaDir), { recursive: true }); +fs.cpSync(mediaDir, distMediaDir, { recursive: true }); + +console.log('[build] Copied media assets to dist/media'); diff --git a/server.js b/server.js index fd472db..8ac0920 100644 --- a/server.js +++ b/server.js @@ -226,10 +226,18 @@ function getWelcomeMessage() { }; } -function createSession() { +function normalizeSessionId(value) { + if (typeof value !== 'string') { + return ''; + } + + return value.trim(); +} + +function createSession(sessionId = createSessionId()) { const timestamp = new Date().toISOString(); const session = { - sessionId: createSessionId(), + sessionId, createdAt: timestamp, updatedAt: timestamp, recentTurns: [], @@ -253,6 +261,21 @@ function getSession(sessionId) { return chatbotSessions.get(sessionId) || null; } +function getOrCreateSession(sessionId) { + const normalizedSessionId = normalizeSessionId(sessionId); + + if (!normalizedSessionId) { + return { session: createSession(), recovered: false }; + } + + const existing = getSession(normalizedSessionId); + if (existing) { + return { session: existing, recovered: false }; + } + + return { session: createSession(normalizedSessionId), recovered: true }; +} + function compactTurnsForPrompt(turns) { return turns .map((turn) => `${turn.role.toUpperCase()}: ${turn.content}`) @@ -847,7 +870,7 @@ try { app.use(cors()); app.use(express.json()); -app.get('/firebase-config.js', (req, res) => { +function handleFirebaseConfigScript(req, res) { const missingKeys = Object.entries(firebaseWebConfig) .filter(([, value]) => !value) .map(([key]) => key); @@ -859,7 +882,10 @@ app.get('/firebase-config.js', (req, res) => { res.setHeader('Content-Type', 'application/javascript; charset=utf-8'); res.setHeader('Cache-Control', 'no-store'); res.send(`${warning}\nwindow.FIREBASE_CONFIG = ${JSON.stringify(firebaseWebConfig)};`); -}); +} + +app.get('/firebase-config.js', handleFirebaseConfigScript); +app.get('/api/firebase-config.js', handleFirebaseConfigScript); const staticRootPath = fs.existsSync(path.join(__dirname, 'dist')) ? path.join(__dirname, 'dist') @@ -867,10 +893,13 @@ const staticRootPath = fs.existsSync(path.join(__dirname, 'dist')) app.use(express.static(staticRootPath)); -// Health check -app.get('/health', (req, res) => { +function handleHealth(req, res) { res.json({ status: 'ok' }); -}); +} + +// Health check +app.get('/health', handleHealth); +app.get('/api/health', handleHealth); function getChatbotConfigStatus() { const knowledge = loadChatbotKnowledge(); @@ -913,17 +942,22 @@ async function handleChatbotSessionCreate(req, res) { } async function handleChatbotMessage(req, res) { - const session = getSession(req.body?.sessionId); + const requestedSessionId = normalizeSessionId(req.body?.sessionId); + const { session, recovered } = getOrCreateSession(requestedSessionId); const message = typeof req.body?.message === 'string' ? req.body.message.trim() : ''; - if (!session) { - return res.status(404).json({ error: 'Session not found.' }); + if (!requestedSessionId) { + return res.status(400).json({ error: 'Session ID is required.' }); } if (!message) { return res.status(400).json({ error: 'Message is required.' }); } + if (recovered) { + console.warn(`⚠️ Recovered missing chatbot session: ${requestedSessionId}`); + } + const intent = inferIntent(message); updateSessionIntent(session, message, intent); @@ -953,7 +987,7 @@ async function handleChatbotMessage(req, res) { } async function handleChatbotSummarize(req, res) { - const session = getSession(req.body?.sessionId) || createSession(); + const { session } = getOrCreateSession(req.body?.sessionId); const target = typeof req.body?.target === 'string' ? req.body.target.trim() : 'portfolio'; const audience = typeof req.body?.audience === 'string' ? req.body.audience.trim() : session.userIntentProfile.audience || 'general'; const subjectId = typeof req.body?.subjectId === 'string' ? req.body.subjectId.trim() : ''; diff --git a/src/Pages/Admin/AdminDashboard.jsx b/src/Pages/Admin/AdminDashboard.jsx index 4215d4b..bd2a35f 100644 --- a/src/Pages/Admin/AdminDashboard.jsx +++ b/src/Pages/Admin/AdminDashboard.jsx @@ -25,9 +25,13 @@ import { twMerge } from 'tailwind-merge'; import { database } from '../../firebase'; import { useAuth } from '../../contexts/AuthContext'; import { useAdminPosts } from '../../hooks/useBlogPosts'; -import { determineMediaTypeFromUrl, formatDate, generateSlug } from '../../utils/blogUtils'; +import { createMediaPlaceholderUrl, determineMediaTypeFromUrl, formatDate, generateSlug } from '../../utils/blogUtils'; -const PLACEHOLDER_MEDIA_URL = 'https://via.placeholder.com/1200x630?text=Media'; +const PLACEHOLDER_MEDIA_URL = createMediaPlaceholderUrl({ + label: 'Media', + width: 1200, + height: 630 +}); const EMPTY_BLOG_DRAFT = { title: '', diff --git a/src/Pages/Blog/Blog.jsx b/src/Pages/Blog/Blog.jsx index fefbccf..5638e1d 100644 --- a/src/Pages/Blog/Blog.jsx +++ b/src/Pages/Blog/Blog.jsx @@ -1,6 +1,6 @@ import { useEffect, useState } from 'react'; import { useBlogPosts } from '../../hooks/useBlogPosts'; -import { formatDate } from '../../utils/blogUtils'; +import { createMediaPlaceholderUrl, formatDate } from '../../utils/blogUtils'; import '../../../styles.css'; function determineMediaTypeFromUrl(url) { @@ -53,7 +53,11 @@ export default function Blog() { }, []); const renderMedia = (post) => { - const placeholder = `https://via.placeholder.com/400x250?text=${encodeURIComponent(post.title || 'Blog+Post')}`; + const placeholder = createMediaPlaceholderUrl({ + label: post.title || 'Blog Post', + width: 400, + height: 250 + }); const url = post.mediaUrl || post.image || placeholder; const mediaType = post.mediaType || determineMediaTypeFromUrl(url); if (mediaType === 'video') { diff --git a/src/Pages/Hero/Hero.jsx b/src/Pages/Hero/Hero.jsx index 1bd24b7..6760e6a 100644 --- a/src/Pages/Hero/Hero.jsx +++ b/src/Pages/Hero/Hero.jsx @@ -10,91 +10,164 @@ export default function Hero() { const canvas = canvasRef.current; if (!canvas) return; - const ctx = canvas.getContext('2d'); - let time = 0; - let animId = null; + const ctx = canvas.getContext('2d', { alpha: false, desynchronized: true }); + if (!ctx) return; + + const motionQuery = window.matchMedia('(prefers-reduced-motion: reduce)'); + const lowPowerDevice = Boolean( + motionQuery.matches + || navigator.connection?.saveData + || (navigator.hardwareConcurrency && navigator.hardwareConcurrency <= 4) + ); + + let viewportWidth = window.innerWidth; + let viewportHeight = window.innerHeight; + let animationFrameId = 0; + let particles = []; + let lastFrameAt = 0; + let animationStartAt = performance.now(); + let isTabVisible = !document.hidden; + + const config = { + particleMinSize: 0.6, + particleMaxSize: 1.8, + breathingCycleDurationMs: 30000, + targetFrameDurationMs: lowPowerDevice ? 1000 / 24 : 1000 / 30, + maxParticleCount: lowPowerDevice ? 70 : 140, + minParticleCount: lowPowerDevice ? 28 : 48, + }; function resizeCanvas() { - canvas.width = window.innerWidth; - canvas.height = window.innerHeight; + viewportWidth = window.innerWidth; + viewportHeight = window.innerHeight; + + const devicePixelRatio = Math.min(window.devicePixelRatio || 1, 1.5); + canvas.width = Math.round(viewportWidth * devicePixelRatio); + canvas.height = Math.round(viewportHeight * devicePixelRatio); + canvas.style.width = `${viewportWidth}px`; + canvas.style.height = `${viewportHeight}px`; + + ctx.setTransform(devicePixelRatio, 0, 0, devicePixelRatio, 0, 0); + particles = createParticles(); } - resizeCanvas(); - window.addEventListener('resize', resizeCanvas); - const config = { - particleCount: 400, - particleMinSize: 0.5, - particleMaxSize: 2, - breathingCycleDuration: 30000, - }; + function getParticleCount() { + const particleCountFromArea = Math.round((viewportWidth * viewportHeight) / 18000); + return Math.max(config.minParticleCount, Math.min(config.maxParticleCount, particleCountFromArea)); + } class Particle { constructor() { - this.x = Math.random() * canvas.width; - this.y = Math.random() * canvas.height; + this.x = Math.random() * viewportWidth; + this.y = Math.random() * viewportHeight; this.depth = Math.random(); - this.size = config.particleMinSize + this.depth * (config.particleMaxSize - config.particleMinSize); - this.vx = (Math.random() - 0.5) * 0.04; - this.vy = (Math.random() - 0.5) * 0.04; - this.driftPhase = Math.random() * Math.PI * 2; - this.driftSpeed = 0.001 + Math.random() * 0.001; + this.size = config.particleMinSize + this.depth * (config.particleMaxSize - config.particleMinSize); + this.vx = (Math.random() - 0.5) * 0.028; + this.vy = (Math.random() - 0.5) * 0.028; + this.driftPhase = Math.random() * Math.PI * 2; + this.driftSpeed = 0.0007 + Math.random() * 0.0007; this.baseBrightness = 0.3 + this.depth * 0.5; this.currentBrightness = this.baseBrightness; } - update(breathingIntensity, globalTime) { - this.driftPhase += this.driftSpeed; - this.x += this.vx + Math.sin(this.driftPhase) * 0.03; - this.y += this.vy + Math.cos(this.driftPhase * 0.7) * 0.03; - const twinkle = Math.sin(globalTime * 0.003 + this.driftPhase) * 0.3; + update(deltaMs, breathingIntensity, globalTime) { + const step = deltaMs / 16.67; + this.driftPhase += this.driftSpeed * deltaMs; + this.x += (this.vx + Math.sin(this.driftPhase) * 0.02) * step; + this.y += (this.vy + Math.cos(this.driftPhase * 0.7) * 0.02) * step; + const twinkle = Math.sin(globalTime * 0.0025 + this.driftPhase) * 0.22; this.currentBrightness = (this.baseBrightness + twinkle) * (0.7 + breathingIntensity * 0.3); - if (this.x < -20) this.x = canvas.width + 20; - if (this.x > canvas.width + 20) this.x = -20; - if (this.y < -20) this.y = canvas.height + 20; - if (this.y > canvas.height + 20) this.y = -20; + + if (this.x < -20) this.x = viewportWidth + 20; + if (this.x > viewportWidth + 20) this.x = -20; + if (this.y < -20) this.y = viewportHeight + 20; + if (this.y > viewportHeight + 20) this.y = -20; } draw(ctx) { - ctx.save(); - const glow = ctx.createRadialGradient(this.x, this.y, 0, this.x, this.y, this.size * 5); - glow.addColorStop(0, `rgba(96, 165, 250, ${this.currentBrightness * 0.4})`); - glow.addColorStop(1, 'rgba(96, 165, 250, 0)'); - ctx.fillStyle = glow; + ctx.fillStyle = '#60a5fa'; + ctx.globalAlpha = this.currentBrightness * 0.16; ctx.beginPath(); - ctx.arc(this.x, this.y, this.size * 5, 0, Math.PI * 2); + ctx.arc(this.x, this.y, this.size * 4.2, 0, Math.PI * 2); ctx.fill(); - ctx.fillStyle = `rgba(200, 230, 255, ${Math.min(this.currentBrightness, 1)})`; + + ctx.fillStyle = '#dbeafe'; + ctx.globalAlpha = Math.min(this.currentBrightness, 1); ctx.beginPath(); ctx.arc(this.x, this.y, this.size, 0, Math.PI * 2); ctx.fill(); - ctx.restore(); } } - const particles = Array.from({ length: config.particleCount }, () => new Particle()); + function createParticles() { + return Array.from({ length: getParticleCount() }, () => new Particle()); + } - function animate() { - time++; - const breathingIntensity = Math.sin(time / config.breathingCycleDuration * Math.PI * 2) * 0.5 + 0.5; + function drawFrame(now) { + const elapsed = now - animationStartAt; + const breathingIntensity = Math.sin((elapsed / config.breathingCycleDurationMs) * Math.PI * 2) * 0.5 + 0.5; ctx.fillStyle = '#0a1423'; - ctx.fillRect(0, 0, canvas.width, canvas.height); - particles.forEach((p) => { p.update(breathingIntensity, time); p.draw(ctx); }); - animId = requestAnimationFrame(animate); + ctx.fillRect(0, 0, viewportWidth, viewportHeight); + + const deltaMs = lastFrameAt ? now - lastFrameAt : config.targetFrameDurationMs; + particles.forEach((particle) => { + particle.update(deltaMs, breathingIntensity, elapsed); + particle.draw(ctx); + }); + ctx.globalAlpha = 1; + } + + function animate(now) { + if (motionQuery.matches) { + drawFrame(now); + return; + } + + if (isTabVisible && (!lastFrameAt || now - lastFrameAt >= config.targetFrameDurationMs)) { + drawFrame(now); + lastFrameAt = now; + } + + animationFrameId = requestAnimationFrame(animate); + } + + function handleVisibilityChange() { + isTabVisible = !document.hidden; + if (isTabVisible) { + lastFrameAt = 0; + } + } + + resizeCanvas(); + window.addEventListener('resize', resizeCanvas, { passive: true }); + document.addEventListener('visibilitychange', handleVisibilityChange); + + drawFrame(animationStartAt); + + if (!motionQuery.matches) { + animationFrameId = requestAnimationFrame(animate); } - animate(); // Video crossfade const video = videoRef.current; + let onLoaded; + let onError; if (video) { - const onLoaded = () => { video.classList.add('loaded'); canvas.style.opacity = '0.5'; }; - const onError = () => { canvas.style.opacity = '1'; }; + onLoaded = () => { video.classList.add('loaded'); canvas.style.opacity = '0.5'; }; + onError = () => { canvas.style.opacity = '1'; }; video.addEventListener('loadeddata', onLoaded); video.addEventListener('error', onError); } return () => { - cancelAnimationFrame(animId); + cancelAnimationFrame(animationFrameId); window.removeEventListener('resize', resizeCanvas); + document.removeEventListener('visibilitychange', handleVisibilityChange); + + if (video && onLoaded && onError) { + video.removeEventListener('loadeddata', onLoaded); + video.removeEventListener('error', onError); + } }; }, []); diff --git a/src/utils/blogUtils.js b/src/utils/blogUtils.js index 26a46b9..4712640 100644 --- a/src/utils/blogUtils.js +++ b/src/utils/blogUtils.js @@ -1,6 +1,46 @@ // Blog post utilities for normalization, filtering, and formatting -const PLACEHOLDER_MEDIA_URL = 'https://via.placeholder.com/640x360?text=Blog+Preview'; +function escapeXml(value = '') { + return String(value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"') + .replace(/'/g, '''); +} + +export function createMediaPlaceholderUrl({ + label = 'Media', + width = 640, + height = 360 +} = {}) { + const safeWidth = Number.isFinite(width) ? width : 640; + const safeHeight = Number.isFinite(height) ? height : 360; + const svg = ` + + + + + + + + + + + + ${escapeXml(label)} + + + `.trim(); + + return `data:image/svg+xml;charset=UTF-8,${encodeURIComponent(svg)}`; +} + +const PLACEHOLDER_MEDIA_URL = createMediaPlaceholderUrl({ + label: 'Blog Preview', + width: 640, + height: 360 +}); export function determineMediaTypeFromUrl(url) { if (!url) return 'image'; diff --git a/vercel.json b/vercel.json index 97a5a73..783d0c3 100644 --- a/vercel.json +++ b/vercel.json @@ -1,49 +1,45 @@ { - "version": 2, - "builds": [ - { - "src": "package.json", - "use": "@vercel/static-build", - "config": { - "distDir": "dist" - } - }, - { - "src": "server.js", - "use": "@vercel/node" + "$schema": "./.vscode/schemas/vercel.schema.json", + "framework": "vite", + "buildCommand": "npm run build", + "outputDirectory": "dist", + "functions": { + "api/**/*.js": { + "includeFiles": "chatbot/**" } - ], - "routes": [ + }, + "rewrites": [ { - "src": "/api/(.*)", - "dest": "/server.js" + "source": "/chatbot/(.*)", + "destination": "/api/chatbot/$1" }, { - "src": "/chatbot/(.*)", - "dest": "/server.js" + "source": "/admin/secrets/(.*)", + "destination": "/api/admin/secrets/$1" }, { - "src": "/admin/secrets/(.*)", - "dest": "/server.js" + "source": "/firebase-config.js", + "destination": "/api/firebase-config.js" }, { - "src": "/firebase-config.js", - "dest": "/server.js" + "source": "/upload", + "destination": "/api/upload" }, { - "src": "/upload", - "dest": "/server.js" + "source": "/health", + "destination": "/api/health" }, { - "src": "/health", - "dest": "/server.js" + "source": "/home", + "destination": "/index.html" }, { - "handle": "filesystem" + "source": "/blog", + "destination": "/index.html" }, { - "src": "/(.*)", - "dest": "/index.html" + "source": "/admin", + "destination": "/index.html" } ] }