AstroJs Site Setup

Hello i am trying to setup a astrojs site with cloudflare workers as my site has javascript that runs client side that is not supported on pages. I am able to get my site up and running on cloudflare workers but the issue is that none of the css or images and even some of the javascript is not accessible or give a error code of 500 https://kiwihostingnet.splitgaming101yt.workers.dev/ is the current site i am testing it on and i just cant seem to get any of the assets to work properly they do all upload but just dont work at all
Kiwihosting
Kiwi Hosting Hosting is one of the most affordable hosting provider in the world!
1 Reply
Noxitb
NoxitbOP6mo ago
current wrangler config
name = "kiwihostingnet"
main = "dist/_worker.js"
compatibility_date = "2023-06-30"
workers_dev = true

# Configure the site to serve assets like CSS, JS, images
site = { bucket = "./dist" }
name = "kiwihostingnet"
main = "dist/_worker.js"
compatibility_date = "2023-06-30"
workers_dev = true

# Configure the site to serve assets like CSS, JS, images
site = { bucket = "./dist" }
and my astro config
import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind";
import sitemap from '@astrojs/sitemap';
import cloudflare from "@astrojs/cloudflare";

export default defineConfig({
site: 'https://kiwihosting.net',
integrations: [tailwind(), sitemap()],
trailingSlash: 'never',
build: {
format: 'file'
},
output: "server",
adapter: cloudflare()
});
import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind";
import sitemap from '@astrojs/sitemap';
import cloudflare from "@astrojs/cloudflare";

export default defineConfig({
site: 'https://kiwihosting.net',
integrations: [tailwind(), sitemap()],
trailingSlash: 'never',
build: {
format: 'file'
},
output: "server",
adapter: cloudflare()
});
Want results from more Discord servers?
Add your server