solid-start-netlify
TypeScript icon, indicating that this package has built-in type declarations

0.3.11 • Public • Published

start-netlify

This package is deprecated see @solidjs/start

Adapter for Solid apps that work on in a Netlify function.

This is very experimental; the adapter API isn't at all fleshed out, and things will definitely change.

Edge Functions

Pass the option edge to your adapter to have it deploy to edge functions instead of standard Netlify functions. Edge Functions have support for streaming as well.

import { defineConfig } from "vite";
import solid from "solid-start/vite";
import netlify from "solid-start-netlify";

export default defineConfig({
  plugins: [solid({ adapter: netlify({ edge: true }) })]
});

Configuration

You will be prompted on deploy to choose a publish directory. Type in "netlify".

Alternatively you can setup your netlify.toml to properly locate the built resources.

[build]
  publish = "netlify/"

From here you can run npm run build and then netlify deploy --prod to deploy.

Important When running edge functions they need to be built first so you can do so by running netlify build or adding --build to your deploy cli command.

Readme

Keywords

none

Package Sidebar

Install

npm i solid-start-netlify

Weekly Downloads

15

Version

0.3.11

License

none

Unpacked Size

10.2 kB

Total Files

7

Last publish

Collaborators

  • ryansolid