Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
43 views

I have this background animation running and the code looks something like this: body { background-image: url("../assets/asset1.webp"), url("../assets/asset2.webp"), url(&...
altamura's user avatar
2 votes
0 answers
48 views

I'm building a static site with Astro and trying to create a custom code block component that allows users to switch between different programming languages. Current Implementation CodeBlock.jsx: ...
Ashwin Prasad's user avatar
0 votes
0 answers
43 views

I've noticed that with Astrojs it appears that the page setting is dominate when it comes to executing a request as static or SSR. What I mean by this is: If page is marked static and endpoint is ...
Robert Kendrick's user avatar
1 vote
1 answer
154 views

I’m building a personal blog with Astro + Tailwind CSS and I successfully implemented a dark/light theme toggle. After that, I wanted to add smooth transition animations between themes. To avoid ...
Leo204_LKY's user avatar
1 vote
0 answers
81 views

I use React components in an Astro application that defines its data schema using Zod. How can I infer the schema instead of duplicating 90% of its in a TypeScript interface? Zod: // content.config.ts ...
Ingo Steinke's user avatar
1 vote
2 answers
199 views

I am trying to deploy an Astro.js site on Vercel that utilizes TailwindCSS v4: tailwind.config.js /** @type {import('tailwindcss').Config} */ export default { purge: ["./src/pages/**/*.{js,ts,...
cr33d's user avatar
  • 23
0 votes
1 answer
121 views

I understand the SSG and SSR mode in astro and when to use them. We use SSG where dealing with static pages and SSG offers faster speed due just serving prerendered code. We will use SSR when we are ...
Siranjeevi K's user avatar
0 votes
1 answer
69 views

I am using tsparticles for my website and I have two json files that are for light and dark mode, the dark mode version is provided below: { "fullScreen": { "enable": true, ...
cr33d's user avatar
  • 23
1 vote
0 answers
34 views

I'm building an Astro site using auth-astro with Google as a provider. Everything works perfectly in local development, including sign-in and callback flows. However, in production (Vercel SSR), when ...
Ouariachi's user avatar
  • 131
0 votes
0 answers
67 views

I'm evaluating Astro as a SSG, and while trying to port a site, I've hit an issue, that it seems to not be possible in Astro to achieve both simultaneously: stable and non-astro-specific image URL in ...
kravemir's user avatar
  • 11.1k
0 votes
0 answers
24 views

I am trying to create a monorepo using astrojs, styled with tailwind. Example file structure is /root ./apps/main-site ./packages/site-1-components My tailwind config was in the main-site and does ...
user30910530's user avatar
-3 votes
1 answer
391 views

I'm using Astro in SSR mode. Now I have a certain page with certain blocks (and their graphql requests to collect it's data) that are deep in the page below the fold. I thought it would be better for ...
meez's user avatar
  • 4,888
0 votes
0 answers
223 views

trying out CF pages with astro and a workflow > [email protected] dev > astro dev 22:32:33 [@astrojs/cloudflare] Enabling sessions with filesystem storage. Be sure to define a KV ...
Norfeldt's user avatar
  • 9,620
0 votes
1 answer
125 views

How can I deploy my astro page application into firebase hosting, is there any way to do it? I 'm using Astro page with Vue for client side, it's working great but in a deployment it's not even ...
Vignesh's user avatar
  • 11
1 vote
0 answers
86 views

I'm deploying an Astro static site to S3 and serving it via CloudFront. Here's my deploy script: "deploy": "npm run build && aws s3 sync dist s3://mybucket/WEBSITE --delete"...
Shanu Reddy's user avatar
0 votes
1 answer
257 views

I'm using a strict CSP without allowlists on my statically generated Astro website. I have no access to nonce-based CSP, only hash-based. Do I need to add permitted domains to a CSP allowlist if I'm ...
zaitovalisher's user avatar
1 vote
1 answer
92 views

I'm in the process of porting my website across to Astro - it is mostly working fine, but there is one TypeScript error that I cannot figure out a proper fix for. My website uses Utterances for ...
Joe Clay's user avatar
  • 36.1k
0 votes
0 answers
157 views

I am writing vitest tests that need http access to files in the public folder, which will be under the base url at production. What is a good way to accomplish this? I was hoping to find a plugin ...
Ed Staub's user avatar
  • 15.8k
0 votes
0 answers
63 views

A website build using Astro includes a HTML form to capture name, email and message - the website is to be deployed via Cloudflare and should use only the CLoudflare D1 database connected via a ...
Mephisto3's user avatar
0 votes
0 answers
66 views

Inside *.astro page I have a React component, that has client:load directive. Inside the component I have another component that must be loaded only on client. How can I do it? // pages/index.astro ...
shtuper's user avatar
  • 3,926
0 votes
0 answers
113 views

I'm using VSCode, and I've noticed that when I import Svelte components into my Astro components, they are typed as any, and TypeScript does not type-check the props. I have set up my project running: ...
Zinjifra's user avatar
1 vote
1 answer
277 views

I'm working through a course and need help adapting the following code for my Astro project configuration. The original code I'm trying to replicate is: // @ts-check import { defineConfig, envField } ...
Daniel's user avatar
  • 11
0 votes
0 answers
170 views

I have 20k posts, I want to prerender 2k of them on build-time, the others should be served on demand. I am using the Vercel server adapter with the server output. https://docs.astro.build/en/guides/...
Vasil Kostadinov's user avatar
0 votes
0 answers
32 views

I would like to use persistent nanostore in my astro application for multiple use-cases. However the different use-cases can't all work with localStorage or sessionStorage exclusively as the engine. ...
TheSoma300's user avatar
0 votes
0 answers
60 views

I'm trying to fetch a simple endpoint like so export const prerender = false; const params = Astro.params; const id = params.id; let data = null; let error = null; try { const response = await ...
Vincenzo's user avatar
  • 433

1
2 3 4 5
16