D
Deno

help

Astro - Vs code template

Ssgrm117/31/2023
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()], });
Mmarvinh.7/31/2023
What kind of error does it throw?
Ssgrm117/31/2023
Ssgrm117/31/2023
getting 404 error. at "/" but when I access the same using "/index.html" it works.
KWKevin Whinnery7/31/2023
Is your Astro site in SSR or SSG mode?
Ssgrm117/31/2023
Its SSG site The home page is SSG. I might add a page which would be SSR.
KWKevin Whinnery8/1/2023
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?
Ssgrm118/2/2023
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.

Looking for more? Join the community!

Recommended Posts
denodrivers/sqlite and deno-sqlit behave different with multiple `?` argsI wanted to understand why these return different results ```ts Deno.test("DB()", (_) => { // Want to write a small NPM package that's for all contextsdeno, browser and node is this April 2022 resource the best one for this? https://portal.gitnation.oSite runs fine but vscode is filled with errors.Kinda annoying, any ideas why?Is there a way to disable Deno Deploy server timing out in ~5 1/2 minutes?Is there a way to disable Deno Deploy server timing out in ~5 1/2 minutes?Object to tuple of tuple of keys and type?Example: ```ts type SomeType = { owo: string uwu: number } ``` Into ```ts type SomeType = [ ["typescript compiler (38.24MB) included in bundle when importing google's npm:schema-dtsNot sure if this is a bug, but I couldn't see how the package imports the compiler. create a ts fildebug why a file is importedI get a compilation error from a ts file that shouldn't be imported. How can I debug the import chaiCan I rename my deno.land package?Is it possible? What should I do?Deno Compile in NixOS docker imageI'm trying to compile code to deploy to aws lambda functions. I can do it locally on my m1 mac just Discord User Authentication WebsiteCan anyone help me create a web server that allows users to login to their discord account and then Dynamic interfacesIs it possible to have like an interface that has a type entry and when it is a string for example tDisable / Replace Loading FaviconHaven't found anything regarding it and likely is not possible, however I thought I might as well sDeno test Leaking resourcesHi i currently try to get used to deno.test but Deno.readTextFile makes the test end in the followinDeno.Command arg with an asterisk?I am trying to execute a shell command from Deno, where one of the command args contains an asterisk`deno compile` in Nix results in `deno repl` starting instead of actual programI wrote following Nix impure derivation for my Deno app: ```nix packages.api = pkgs.stdenv.mkDerivat`@sentry/node` is throwing an export error on Deno DeployHello, this is my first time using Deno. I was trying to use the `@sentry/node` client on deploy, basync mapIs there anyway using the stdlib to map from one array to another array, with the work being done coHTTP 206 + HTML5 video streaming with Freshhow do I implement an endpoint to stream a video to a HTML video player using HTTP 206 in Fresh? Herrusty_v8 extracting stack trace when a promise rejectsHi, i am trying to get the stack trace and print it out when a promise rejects. ```rust if promise.sNode-API related segmentation faultAny idea what could be causing this crash? I'm using Node-API and the same module is working fine in