Astro - Vs code template
I am deploying this app using the deno deploy. My app's root is available at https://antilibrary-astro.deno.dev/index.html. https://antilibrary-astro.deno.dev/ this throws the error. ---
import Layout from "../layouts/Layout.astro";
export const prerender = true;
---
<Layout title="Antilibrary - The App">
<></>
</Layout>
this is pages/index.astro
[18:21]
import { defineConfig } from "astro/config";
// Eventually, replace this import with the official one - we're using a
// patched version for now.
// import deno from "@astrojs/deno";
import deno from "deno-astro-adapter";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
// https://astro.build/config
export default defineConfig({
output: "server",
adapter: deno(),
integrations: [tailwind(), react()],
});
7 Replies
What kind of error does it throw?
getting 404 error. at "/" but when I access the same using "/index.html" it works.
Is your Astro site in SSR or SSG mode?
Its SSG site
The home page is SSG. I might add a page which would be SSR.
if it's SSG and works locally, my guess would be that there's an issue with the file server setup - how are you serving the directory?
here is how my astro config looks like. I am planning to use mix of ssg and ssr.
Is this possible or should I just render site as ssg
s)
- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: "antilibrary-astro"
entrypoint: "server/entry.mjs" # 📝 Update the entrypoint
root: "dist" # 📝 Update the root here is the github action being used to deploy app. Do i need to make changes to this.