Configure Cloudflare image service
This commit is contained in:
@@ -5,11 +5,13 @@ import cloudflare from '@astrojs/cloudflare';
|
|||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
adapter: cloudflare(),
|
adapter: cloudflare({
|
||||||
|
imageService: { build: 'compile', runtime: 'passthrough' }
|
||||||
|
}),
|
||||||
env: {
|
env: {
|
||||||
schema: {
|
schema: {
|
||||||
TWY_API_URL: envField.string({ context: "server", access: "public", default: "https://api.recroom.baby" }),
|
TWY_API_URL: envField.string({ context: "server", access: "public", default: "https://api.recroom.baby" }),
|
||||||
TWY_CDN_URL: envField.string({ context: "server", access: "public", default: "https://cdn.recroom.baby" })
|
TWY_CDN_URL: envField.string({ context: "server", access: "public", default: "https://cdn.recroom.baby" })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import HandheldVideos from "$components/Home/HandheldVideos.astro";
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<Image
|
<Image
|
||||||
src={logoImage}
|
src={logoImage}
|
||||||
alt="asdasd"
|
alt="TenWholeYears Logo"
|
||||||
class="masthead-logo"
|
class="masthead-logo"
|
||||||
/>
|
/>
|
||||||
<h1 class="masthead-title">TenWholeYears</h1>
|
<h1 class="masthead-title">TenWholeYears</h1>
|
||||||
|
|||||||
Reference in New Issue
Block a user