SvelteKit Flags SDK Starter

R
Renaudil y a 2 jours
0

Description

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

npx boilerapp toolbar-feature-flags-sveltekit

Documentación

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).

Prix

Gratuit

FREE

Comentarios (0)

FAQ

Preguntas Frecuentes

¿Tienes una pregunta? Tenemos las respuestas. Si no encuentras lo que buscas, no dudes en contactarnos.

Boilerapp es una plataforma comunitaria dedicada a compartir boilerplates, starter kits y plantillas de proyectos para desarrolladores. Nuestro objetivo es simple: hacerte ahorrar tiempo en la configuración inicial (setup) para que puedas programar lo que realmente importa. Ya busques una base de código simple o un proyecto SaaS completo, lo encontrarás aquí.

¿Tienes otras preguntas?

Nuestro equipo está aquí para ayudarte. Contáctanos y te responderemos lo antes posible.

SvelteKit Flags SDK Starter | BoilerApp