Back

[SOLVED] SSR, APPWRITE

  • 1
  • Web
Camo
2 Jul, 2023, 17:11

Im having problems getting ssr working.

My setup, is using this repo - https://github.com/Meldiron/appwrite-ssr-svelte-kit Domain is on Cloudflare, i have disabled cache for the test domain "bash.lv" the backend is on "b.bash.lv" (it's the main installation), the front end is on vercel "bash.lv", In overview I have added web platform as "bash.lv"

This is the AppwriteService.ts in the repo

TypeScript
export const AppwriteHostname: string = 'bash.lv';

export const AppwriteEndpoint = 'https://b.bash.lv/v1';
export const AppwriteProject = 'SSR';```
TL;DR
There was a problem with SSR (server-side rendering) in the given setup. The user was using a specific repository to implement SSR with Svelte Kit. The domain was on Cloudflare, and the backend was on "b.bash.lv" while the frontend was on Vercel with the domain "bash.lv". The user added the web platform as "bash.lv" in the Appwrite overview. The issue was resolved by rewriting the export constant `AppwriteHostname` to 'b.bash.lv'. The user didn't need to add anything to the custom domain as it wasn't necessary.
Camo
2 Jul, 2023, 17:12
D5
2 Jul, 2023, 17:33

Seems like your domain or platform is not being added to your appwrite platform

D5
2 Jul, 2023, 17:35

@Camo

Camo
2 Jul, 2023, 17:35

it's the main backend install, i havent added anything in the custom domain as there is no need

Camo
2 Jul, 2023, 17:35

i can access it on the same subdomain (https://b.bash.lv) as the site (https://bash.lv)

Camo
2 Jul, 2023, 17:41

@D5 apparently i cannot read, i had to rewrite export const AppwriteHostname: string = 'b.bash.lv';

Camo
2 Jul, 2023, 17:41

i had it set as site

Camo
2 Jul, 2023, 17:43

Case closed, @D5 thank you for cooperation and hints!

Camo
2 Jul, 2023, 17:43

SSR, APPWRITE [SOLVED]

D5
2 Jul, 2023, 20:46

[SOLVED] SSR, APPWRITE

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more