Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
46 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
0 votes
0 answers
44 views

I currently have an application developed using Vite + Vue3 + micro-app, and I need to integrate an application developed using Astro + React as a sub-application. I tried use <micro-app name='test'...
Tomily's user avatar
  • 9
2 votes
0 answers
55 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
127 views

I'm using tailwindcss v4, and NO tailwind.config.js anymore, so basically CSS first rule. I use Astro with vite config, and the way I am trying to structure the layers of tailwindcss is failing ...
Afshin's user avatar
  • 2,457
0 votes
0 answers
45 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
131 views

I built a site manually, without the help of any framework. Each page is a html file, so the routes end with html, such as https://example.com/location.html I am currently migrating it to Astro. But ...
Pascal's user avatar
  • 128
1 vote
1 answer
172 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
0 votes
1 answer
73 views

The issue is reproducible in this minimal example repository. I have a build error in Astro 5 when using Vite’s import glob to create a collection of images (int src/content.config.ts) and referencing ...
muimota's user avatar
  • 534
1 vote
0 answers
83 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
0 answers
61 views

Is it possible to have some kind of setup like below, where clicking button will trigger some state change or re-render in MyReactComponent? In an .astro file: <AstroComponent> <...
AAb's user avatar
  • 11
1 vote
2 answers
220 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
55 views

Following the getting started example, I created a new component components/Main.tsx and added: import { Stage, Layer, Rect, Circle, Text } from 'react-konva'; export default function Main() { ...
Richie Bendall's user avatar
0 votes
1 answer
133 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
0 answers
69 views

I'm developing a server-side generated (SSG) app in Astro and am using actions to handle form posts. The docs details a middleware which allows you implement the Post-Redirect-Get pattern so you can ...
Brendan's user avatar
  • 19.6k
0 votes
1 answer
79 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
0 votes
1 answer
80 views

On build, yarn build, I end up with a /dist/_astro directory with everything as expected--css, js, img, mp4, etc. However, I also have all the images and videos for my site in the main /dist directory....
Chris's user avatar
  • 6,204
1 vote
0 answers
35 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
45 views

For historic reasons, options specified in the url path dynamically influence page contents. I want to handle both GET and POST, where GET sometimes returns a rendered Astro component, and sometimes ...
Richie Bendall's user avatar
0 votes
0 answers
69 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.2k
0 votes
1 answer
280 views

I'm crafting a personal portfolio website with Astro. I got View Transitions enabled, and GSAP animations tied to my persistent header on the pages. The header's animation should close the navigation (...
luigi_pdt's user avatar
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
0 votes
0 answers
237 views

I'm working on a small Astro test project that uses the Node standalone adapter for an API endpoint. Then I'm using a Svelte form to POST to that endpoint like in this tutorial. I'm running the Node ...
codeadventurer's user avatar
-3 votes
1 answer
403 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
1 answer
53 views

I've recently had a problem with needing to traverse and transform some DOM children from a Parent Preact component: import {isElevated} from "../stores/UserStateStore.ts"; import type {...
Paul Krahn's user avatar
0 votes
0 answers
231 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
0 answers
48 views

I'm working on a project that I am building with astro framework. I worked fine but when I deploying it today the content of two pages are empty. when I inspect the deployment page - every code ...
ktj_jcbsn's user avatar
0 votes
1 answer
130 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
2 answers
265 views

In my Astro project I need a dynamic height for a certain html element. I have this <script> tag in my Astro component: <script> let height = 0; if (typeof document !== 'undefined') { ...
meez's user avatar
  • 4,888
2 votes
0 answers
89 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
0 answers
69 views

I'm building a website using Astro and deploying it to Vercel. One of my components, Footer.astro, is missing all of its styles only in production. It works fine locally. Also all other components ...
user30418389's user avatar
0 votes
1 answer
266 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
0 votes
0 answers
124 views

I got a form tha contains an extendable array of elements: <CustomInput title="Ingredient" name="ingredient[0].name" /> // or ingredient[0][name] <CustomInput title="...
Telion's user avatar
  • 777
1 vote
1 answer
96 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
1 answer
91 views

In Astro project I get external links opened in new tab, but in process it breaks existing expresive-code syntax highlighting for code blocks. https://github.com/nemanjam/nemanjam.github.io/blob/...
marko kraljevic's user avatar
0 votes
0 answers
159 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
70 views

I'm working with Astro and I'm very new to it. This is my CityPageLayout.astro --- import Header from "../components/Header.astro"; import Footer from "../components/Footer.astro"; ...
Webnapp's user avatar
0 votes
0 answers
67 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
1 answer
121 views

I need to import "desktop.scss" or "mobile.scss" in my astro "MainComponent". So, based on ternary I have string "Desktop" or "Mobile" but when I try ...
Gnesh's user avatar
  • 45
0 votes
0 answers
68 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
141 views

Example I have AppImage.astro component as below --- import { Image } from 'astro:assets'; --- <Image src="https://example.com/remote-bird.jpg" alt="A bird." inferSize /> Now ...
mani's user avatar
  • 1
0 votes
0 answers
122 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
0 votes
0 answers
124 views

I'm working with Astro and I love it, but there is something that I don't know if I'm doing in the right way or not. I just created a form with a POST method and an action <form method="POST&...
jmanuelrosa's user avatar
1 vote
1 answer
288 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
1 vote
1 answer
95 views

I’m using React, Astro and Contenful. I need to render rich text with images. I tried to use documentToReactComponents function from @Contentful/rich-text-react-renderer package to render rich text. ...
Alejandro Baranov's user avatar
0 votes
0 answers
179 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
73 views

After logging in with React's Google OAuth library, I am being redirected to my front end again with the following link. Why is this happening and how can I fix the issue? https://website.com/?error=...
MrAhmed'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
2 answers
894 views

npx @tailwindcss/upgrade@next wont work for ./tailwind.config.ts which makes this tool not much useful, migrates just a few trivial classes. Here is my config: https://github.com/nemanjam/nemanjam....
marko kraljevic's user avatar
0 votes
0 answers
61 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
0 votes
0 answers
112 views

I'm much more accustomed to React rather than Astro and Nextjs. I'm trying to develop a blog subdomain using Astrojs and i would like to use a template rather than build something from scratch. I'm ...
Coolkid's user avatar
  • 597

1
2 3 4 5
16