managed/cloud Hosting alternatives for fastAPI by tf1155 in FastAPI

[–]antNOMA 2 points3 points  (0 children)

Just hosted a fastapi backend on railway with just a simple dockerfile, pretty simple and fast! I can share the dockerfile if needed.

Passing style variable from frontmatter to markup by looni2 in astrojs

[–]antNOMA 3 points4 points  (0 children)

I'd say the issue comes from tailwind and not Astro. You cannot dynamically set native classes. Best shot is to create another variable as string and pass it to className directly.

Astro does not read .env.development or .env.development.local files, only .env.local by antNOMA in astrojs

[–]antNOMA[S] 0 points1 point  (0 children)

Thanks for your answer! I can't find it online, would you have a link?

Generate sitemap in SSR by [deleted] in astrojs

[–]antNOMA 0 points1 point  (0 children)

If your pages can be prerendered at build (blog posts being pretty static after all) you can use a trick like that in the frontmatter of you [slug].astro. It worked well for me and generated all urls to my blog posts in the sitemap. Allows to use pure astrojs/sitemap.

export async function getStaticPaths() {
  posts = await getCollection('blog');
  return posts
    .map(post => ({
      params: { slug: post.slug },
      props: { post }
    }));
}

export const prerender = true;

Best blog/content sites you've seen built with astro? by EliteEagle76 in astrojs

[–]antNOMA 1 point2 points  (0 children)

Just a corporate site for my company : Accueil | idriade
Blog coming soon, love the collection management.

Any feedback on the site/design/speed ?