SvelteKit Flags SDK Starter

SvelteKit Flags SDK Starter

A SvelteKit app using the @vercel/flags Flags SDK.

0

boilerplate.detail.metadata.lastUpdated

il y a 4 mois

R

boilerplate.detail.metadata.author

Renaud

boilerplate.detail.metadata.price

boilerplate.detail.metadata.free

npx boilerapp toolbar-feature-flags-sveltekit

Documentation

Vercel Toolbar Flags SvelteKit Starter

Simple SvelteKit template that uses the Vercel Toolbar and Feature Flags.

Demo

https://toolbar-feature-flags-sveltekit.vercel.app/

How to Use

You can choose from one of the following two methods to use this repository:

One-Click Deploy

Deploy the example using Vercel

Deploy with Vercel

Clone and Deploy

Execute the following command to download the example into the my-project folder:

npx degit@latest https://github.com/vercel/examples/toolbar/toolbar-feature-flags-sveltekit my-project

After installing the dependencies using pnpm install, create a new project in your Vercel Dashboard. In your project's settings, create an environment variable called FLAGS_SECRET. The value must have a specific length (32 random bytes encoded in base64) to work as an encryption key. You can create one using node:

node -e "console.log(crypto.randomBytes(32).toString('base64url'))"

In your local environment, connect to your created project using vercel link and then pull your environment variables with vercel env pull.

Next, run SvelteKit in development mode:

pnpm dev

Deploy it to the cloud with Vercel (Documentation).

boilerplate.detail.sections.discussion

Comments (0)

FAQ

Frequently Asked Questions

Have a question? We have the answers. If you can't find what you're looking for, feel free to contact us.

Boilerapp is a community platform dedicated to sharing boilerplates, starter kits, and project templates for developers. Our goal is simple: save you time on initial setup so you can code what really matters. Whether you are looking for a simple code base or a complete SaaS project, you will find it here.

Have more questions?

Our team is here to help. Contact us and we will get back to you as soon as possible.