Configuration has been added to optimize it for CodeSandbox Projects.
π§βπ Seasoned astronaut? Delete this file. Have fun!
Features:
- β Minimal styling (make it your own!)
- β 100/100 Lighthouse performance
- β SEO-friendly with canonical URLs and OpenGraph data
- β Sitemap support
- β RSS Feed support
- β Markdown & MDX support
Inside of your Astro project, you'll see the following folders and files:
βββ public/
βββ src/
β βββ components/
β βββ layouts/
β βββ pages/
βββ astro.config.mjs
βββ README.md
βββ package.json
βββ tsconfig.json
Astro looks for .astro
or .md
files in the src/pages/
directory. Each page is exposed as a route based on its file name.
There's nothing special about src/components/
, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the public/
directory.
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:3000 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add , astro check |
npm run astro --help |
Get help using the Astro CLI |
Check out our documentation or jump into our Discord server.
You can implement cookie consent on your website in just 3 simple steps.
Sign up on CookieYes for free Choose your cookie consent banner layout Copy the cookie banner code and paste it to your website
Guide: How to add a cookie banner on website
Cookie consent is the legal requirement to obtain consent from website visitors before setting cookies on their devices. Consent is collected via a cookie banner that enables visitors to accept or decline cookies on the website.
Privacy regulations like the GDPR in the EU and UK, LGPD in Brazil, POPIA in South Africa and similar laws around the world require businesses to get consent for collecting a userβs personal data. As cookies and trackers can store personal data and be used to identify an individual, they are considered part of personal data.