Inside the project, you'll see the following folders and files:
/
βββ public/
βββ src/
β βββ content/
β βββ links/
β βββ a1b2c3d4.yaml # Example: http://localhost:4321/a1b2c3d4
β βββ ...
β βββ pages/
β βββ [...slug].astro
β βββ 404.astro
β βββ index.astro
βββ package.json
Caution
Local mode is not safe to use this in production. You should use GitHub mode or Keystatic Cloud instead.
npm install
npm run dev-
Add a new link
- Generate a slug with nanoid() or use a custom slug
- Set the redirect URL
- Set the link as active
-
Copy the generated short URL
-
Test it in your browser!
Examples: