aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/cloudflare/test/fixtures/astro-env/src/pages/index.astro
blob: 7e50474edd94f64fd468674f4c58e9ed053c655f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
import { API_URL } from "astro:env/client"
import { PORT, API_SECRET } from "astro:env/server"

const runtime = Astro.locals.runtime;
---
<html>
	<head>
		<title>Astro Env</title>
	</head>
	<body>
		<h1>Astro Env</h1>
		<pre id="runtime">{JSON.stringify(runtime.env, null, 2)}</pre>
		<div>
			<span>API_URL</span>
			<span id="client">{API_URL}</span>
		</div>
		<div>
			<span>PORT</span>
			<span id="server">{PORT}</span>
		</div>
		<div>
			<span>API_SECRET</span>
			<span id="secret">{API_SECRET}</span>
		</div>
	</body>
</html>