denoland / saaskit

A modern SaaS template built on Fresh.
https://deno.com/saaskit
MIT License
1.21k stars 148 forks source link

Trouble getting styles to load on Deno Deploy #653

Closed paudrow closed 9 months ago

paudrow commented 10 months ago

I've forked this repo and tried to run it directly on Deno Deploy. The application loads and seems to have all the parts but no styling. I can view the styling when I run the site locally.

Perhaps I'm missing something obvious, but it would be good to document this.

To Reproduce

  1. Deploy with Deno Deploy. Set Automatic deployment mode and main.ts as the entry point.
  2. Go to the deployment website to see that no styles are applied.

Expected behavior The styling should load.

Screenshots

Here is what I see on the website hosted by Deno Deploy:

Screenshot from 2024-01-05 21-06-45

Desktop (please complete the following information):

Additional context

I don't see anything funny in the build logs or runtime logs.

I'm also able to get styling to work on Deno Deploy using the Fresh template. I'm not sure what's different here.

iuioiua commented 10 months ago

Hi Audrow, sorry for the late reply. You've setup the Deno Deploy and GitHub integration mode to Automatic when it should be via a GitHub action. We changed this a while ago but didn't update the documentation. I'll rewrite the documentation shortly and update you once done.

paudrow commented 10 months ago

That works great - thanks!

What is it about this project that requires it to be run with Github Actions? Maybe Tailwind?

iuioiua commented 10 months ago

Yeah, Tailwind.

iuioiua commented 10 months ago

Related: https://fresh.deno.dev/docs/concepts/ahead-of-time-builds