sgr
sgr13mo ago

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
marvinh.
marvinh.13mo ago
What kind of error does it throw?
sgr
sgr13mo ago
sgr
sgr13mo ago
getting 404 error. at "/" but when I access the same using "/index.html" it works.
Kevin Whinnery
Kevin Whinnery13mo ago
Is your Astro site in SSR or SSG mode?
sgr
sgr13mo ago
Its SSG site The home page is SSG. I might add a page which would be SSR.
Kevin Whinnery
Kevin Whinnery13mo ago
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?
sgr
sgr13mo ago
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()],
});
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()],
});
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.