Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: serve css experiment #815

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Conversation

danielgent
Copy link

@danielgent danielgent commented May 15, 2024

Bah this works locally for me running docker on my machine, but it blows up on the github runners 🤔

@danielgent danielgent self-assigned this May 15, 2024
@@ -11,8 +11,9 @@
"format:ci-cd": "prettier --check '**/*.{ts,css,json,md}'",
"lint": "eslint",
"test": "vitest --pool=forks",
"test:snapshots": "TEST_SNAPSHOTS=true vitest --pool=forks",
"test:update-snapshots": "TEST_SNAPSHOTS=true vitest --pool=forks -u",
"serve-css": "serve src/styles -l 48484",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just picked this port number randomly because I kept blocking previous ports by not closing serve properly (using concurrently fixes this)

@@ -32,7 +32,7 @@ export async function snapshotResponse(
// CSS hack - we are not serving the CSS on this PR though
const responseBody = responseText.replace(
"/css/tailwind.css",
"http://auth2.sesamy.dev/css/tailwind.css",
"http://172.17.0.1:48484/tailwind.css",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the issue!

I don't see any errors from serve that we cannot do this on a github runner, but I don't know what should be here

Running locally I can just put http://localhost:48484/tailwind.css and it works 🤔

Whether it's a restriction on the github runners... I'm not sure

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use localhost?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see the commit history f0b45e4

Indeed that is what I tried first 👍

@danielgent
Copy link
Author

@markusahlstrand I spent 45 minutes on this. I think it's in the right direction but I don't want to waste all day 🥲

@markusahlstrand
Copy link

I'm not sure I follow completely, but why don't we serve the css via hono?

@danielgent
Copy link
Author

I'm not sure I follow completely, but why don't we serve the css via hono?

By serve do you mean inline the whole spreadsheet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants