Nhost SvelteKit Example

Developing

Create a .env file and fill in with your nhost project's region and 'subdomain'

PUBLIC_NHOST_REGION=
PUBLIC_NHOST_SUBDOMAIN=

Running Locally

npm run dev

Running Locally Using the Nhost CLI

  1. Create an nhost project using the CLI
$ nhost init
  1. Run the project
$ nhost up
  1. Create a .env file and set PUBLIC_NHOST_SUBDOMAIN to local and leave the PUBLIC_NHOST_REGIONempty
PUBLIC_NHOST_REGION=local
PUBLIC_NHOST_REGION=
  1. Start the sveltekit developement server
$ npm run dev