Skip to content

konojunya/astro-import-meta-env-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

astro-import-meta-env-site

  1. yarn create astro
  2. create project use recommend & install deps
  3. edit astro.config.mjs
export default defineConfig({
  site: "https://example.com",
});
  1. edit pages/index.astro
+ <h1>{import.meta.env.SITE}</h1>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published