{"dist":{"shasum":"664b3fd3db0cbed6aeef3c2bbd2944eb58f192cc","tarball":"https://registry.npmjs.org/solid-start-vercel/-/solid-start-vercel-0.2.32.tgz","fileCount":8,"integrity":"sha512-q0/IwLyHFz8gxO6jL2Vf1s5dREp1RcltQWBBxO69Chp4lpXhlo1nBPiql9W053CL2V5lIIkIxZu/iiTDcRWnAQ==","signatures":[{"sig":"MEYCIQC5jt33lKxwEttEkN7+gTesFW3y9a/VxgaCrhcpLsyCKwIhAJCh3MXVPAN0DqNhDybJa+RI+XRX7KmY63+VyEzjKEIc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21364},"main":"./index.js","name":"solid-start-vercel","type":"module","_from":"file:solid-start-vercel-0.2.32.tgz","solid":{"type":"adapter"},"types":"./index.d.ts","readme":"# start-vercel\n\nAdapter for Solid apps that work on Vercel.\n\nThis is very experimental; the adapter API isn't at all fleshed out, and things will definitely change.\n\n## Usage\n\nAdd the adapter in your `vite.config.js` file. By default this deploys to a Vercel Function.\n\n```js\nimport solid from \"solid-start/vite\";\nimport vercel from \"solid-start-vercel\";\n\nexport default defineConfig({\n  plugins: [solid({ adapter: vercel() })]\n});\n```\n\nTo deploy to the edge pass in the edge option.\n\n```js\nimport solid from \"solid-start/vite\";\nimport vercel from \"solid-start-vercel\";\n\nexport default defineConfig({\n  plugins: [solid({ adapter: vercel({ edge: true }) })]\n});\n```\n\nTo enable ISR/Prerender, pass in the prerender function.\n\n```js\nimport { defineConfig } from \"vite\"\nimport solid from \"solid-start/vite\"\nimport vercel from \"solid-start-vercel\"\n\nexport default defineConfig({\n  plugins: [\n    solid({\n      ssr: true,\n      adapter: vercel({\n        prerender: true,\n      }),\n    }),\n  ],\n})\n\n```\n\nYou can also set the `expiration` time and/or the `bypassToken`.\n\n```js\nimport { defineConfig } from \"vite\"\nimport solid from \"solid-start/vite\"\nimport vercel from \"solid-start-vercel\"\n\nexport default defineConfig({\n  plugins: [\n    solid({\n      ssr: true,\n      adapter: vercel({\n        prerender: {\n          expiration: 60,\n          bypassToken: \"87734ad8259d67c3c11747d3e4e112d0\",\n        },\n      }),\n    }),\n  ],\n})\n```\n\n\n## Configuration\n\nYou will need to have the [vercel-cli](https://vercel.com/docs/cli) installed globally.\n\n```bash\n> npm i -g vercel\n```\n\nThis adapter makes use of the [Build Output API](https://vercel.com/docs/build-output-api/v3) which you need to enable through the Vercel CLI\n\n```bash\n> vercel env add ENABLE_VC_BUILD\n```\n\nfollow the prompts to set it to `1` for all environments\n","_npmUser":{"name":"ryansolid","email":"ryansolid@gmail.com"},"_resolved":"/private/var/folders/cr/fl2v4q417md5bz2ss340h2180000gn/T/9070dc94085e2855e998b9506517e47b/solid-start-vercel-0.2.32.tgz","_integrity":"sha512-q0/IwLyHFz8gxO6jL2Vf1s5dREp1RcltQWBBxO69Chp4lpXhlo1nBPiql9W053CL2V5lIIkIxZu/iiTDcRWnAQ==","_npmVersion":"9.6.7","description":"Adapter for Solid apps that work on Vercel.","directories":{},"maintainers":[{"name":"ryansolid","email":"ryansolid@gmail.com"}],"_nodeVersion":"18.17.0","dependencies":{"rollup":"^3.10.0","terser":"^5.16.1","fast-glob":"3.2.12","micromatch":"4.0.5","@vercel/nft":"^0.22.6","@rollup/plugin-json":"^6.0.0","@rollup/plugin-commonjs":"^24.0.0","@rollup/plugin-node-resolve":"^15.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vite":"^4.4.6","solid-start":"0.2.32"},"peerDependencies":{"vite":"*","solid-start":"*"},"_npmOperationalInternal":{"tmp":"tmp/solid-start-vercel_0.2.32_1691701725290_0.059287983736483474","host":"s3://npm-registry-packages"},"_id":"solid-start-vercel@0.2.32","version":"0.2.32"}