{"dist":{"shasum":"2046e30a6c8183f097e6e9363a359c213e649ccc","tarball":"https://registry.npmjs.org/solid-start-cloudflare-pages/-/solid-start-cloudflare-pages-0.2.32.tgz","fileCount":8,"integrity":"sha512-R30VdRRH9yk+7z1qu/ViEaI+gHXKe8Pp+zMnFEboanw2nqlkjr0Tgd8ekqk5kflZwoCNCH/NpTCgz1FhlZUPcg==","signatures":[{"sig":"MEYCIQDR/rtHzL25cAtn17MybqkrJYHH4sTyr8grLnmMJVf4VgIhAInLbeBtLeMvL8PciaNOOBVb/bVPZNJ3y+SU/+9ZzJOw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17258},"main":"./index.js","name":"solid-start-cloudflare-pages","type":"module","_from":"file:solid-start-cloudflare-pages-0.2.32.tgz","solid":{"type":"adapter"},"types":"./index.d.ts","readme":"# start-cloudflare-pages\n\nAdapter for Solid apps that work on Cloudflare Pages Functions.\n\n## Get Started\n\nInstall `solid-start-cloudflare-pages`\n\nConfigure it in your vite config:\n```js\nimport { defineConfig } from \"vite\";\nimport solid from \"solid-start/vite\";\nimport cloudflare from \"solid-start-cloudflare-pages\";\n\nexport default defineConfig({\n  plugins: [solid({ adapter: cloudflare({}) })]\n});\n```\n\nOn build this will create a `functions` folder with our `[[path]].js` file which handles all the request. It will also `dist/public` folder with all our assets. That is the target folder for our pages application.\n\n## Build and Deploy\n\nYou can run your app in dev with `npm run dev`. But when you want to build for production you can run `npm run build` and `npm run start` to try it locally.\n\nThe easiest way to deploy is connect your git repo to Cloudflare pages in their [UI console](https://developers.cloudflare.com/pages/get-started/). You can also deploy directly by CLI by:\n\n```sh\n> CLOUDFLARE_ACCOUNT_ID=<ACCOUNT_ID> npx wrangler pages publish dist/public --project-name=<PROJECT_NAME>\n```\n\nMore info about [direct deploys](https://developers.cloudflare.com/pages/how-to/use-direct-upload-with-continuous-integration/#deploy-with-wrangler).\n\n## More Info\n\nMore info on configuring a cloudflare Pages Functions can be found\n[here](https://developers.cloudflare.com/pages/platform/functions/)\n","_npmUser":{"name":"ryansolid","email":"ryansolid@gmail.com"},"_resolved":"/private/var/folders/cr/fl2v4q417md5bz2ss340h2180000gn/T/7ba87cad209a2030d841ec9a857d667f/solid-start-cloudflare-pages-0.2.32.tgz","_integrity":"sha512-R30VdRRH9yk+7z1qu/ViEaI+gHXKe8Pp+zMnFEboanw2nqlkjr0Tgd8ekqk5kflZwoCNCH/NpTCgz1FhlZUPcg==","_npmVersion":"9.6.7","description":"Adapter for Solid apps that work on Cloudflare Pages Functions.","directories":{},"maintainers":[{"name":"ryansolid","email":"ryansolid@gmail.com"}],"_nodeVersion":"18.17.0","dependencies":{"ws":"^8.12.0","rollup":"^3.10.0","terser":"^5.16.1","@types/ws":"^8.5.4","miniflare":"^2.11.0","@miniflare/core":"^2.11.0","@miniflare/shared":"^2.11.0","@rollup/plugin-json":"^6.0.0","@miniflare/http-server":"^2.11.0","@miniflare/web-sockets":"^2.11.0","@rollup/plugin-commonjs":"^24.0.0","@cloudflare/workers-types":"^3.19.0","@rollup/plugin-node-resolve":"^15.0.2","@cloudflare/kv-asset-handler":"^0.2.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vite":"^4.4.6","@types/node":"^18.11.18","solid-start":"0.2.32"},"peerDependencies":{"vite":"*","solid-start":"*"},"_npmOperationalInternal":{"tmp":"tmp/solid-start-cloudflare-pages_0.2.32_1691701714004_0.8568210919169534","host":"s3://npm-registry-packages"},"_id":"solid-start-cloudflare-pages@0.2.32","version":"0.2.32"}