Bersaelor
Bersaelor
Explore posts from servers
SSolidJS
Created by Bersaelor on 2/10/2025 in #support
shadcn-solid plain install ? (maybe a tailwind issue?)
the default tailwindcss solid-start template comes with Tailwind 4.0 and works fine, It's just shadcn that doesn't work with tailwind 4 yet. The default template has:
"overrides": {
"vite": "5.4.10"
},
"overrides": {
"vite": "5.4.10"
},
which works fine
13 replies
SSolidJS
Created by Bersaelor on 2/10/2025 in #support
shadcn-solid plain install ? (maybe a tailwind issue?)
then no shadcn for me right now I guess, I'd rather keep the default solid-js template
13 replies
SSolidJS
Created by Bersaelor on 2/10/2025 in #support
shadcn-solid plain install ? (maybe a tailwind issue?)
the creator of shadcn-solid just responded, it's because the default solid-tailwind project uses Tailwind v4: https://github.com/hngngn/shadcn-solid/issues/140#issuecomment-2648894102
13 replies
SSolidJS
Created by Bersaelor on 2/10/2025 in #support
shadcn-solid plain install ? (maybe a tailwind issue?)
could this be a typescript issue? Since the default generated tailwind file is tailwind.config.cjs and not a *.ts?
13 replies
SSolidJS
Created by Bersaelor on 2/10/2025 in #support
shadcn-solid plain install ? (maybe a tailwind issue?)
dangit, the same error ( with solid-ui.com )
9:03:35 PM [vite] Pre-transform error: [postcss] Cannot apply unknown utility class: border-border
9:03:35 PM [vite] Error when evaluating SSR module /src/app.tsx:
|- Error: [postcss] Cannot apply unknown utility class: border-border
at onInvalidCandidate (/.../cms/node_modules/tailwindcss/dist/lib.js:17:297)
9:03:35 PM [vite] Pre-transform error: [postcss] Cannot apply unknown utility class: border-border
9:03:35 PM [vite] Error when evaluating SSR module /src/app.tsx:
|- Error: [postcss] Cannot apply unknown utility class: border-border
at onInvalidCandidate (/.../cms/node_modules/tailwindcss/dist/lib.js:17:297)
13 replies
SSolidJS
Created by Bersaelor on 2/10/2025 in #support
shadcn-solid plain install ? (maybe a tailwind issue?)
thank you, oh the sites look so similar but you are right, that github project seems much more alive
13 replies
SSolidJS
Created by Bersaelor on 2/10/2025 in #support
shadcn-solid plain install ? (maybe a tailwind issue?)
I just wanted to give it a try in a small test project, but if I can't even get the documented installation to work...
13 replies
RRunPod
Created by Bersaelor on 1/7/2025 in #⛅|pods
How to set ContainerRegistryAuth for `podRentInterruptable`
ah, or I can just modify the template before I create a new pod, that would work too, using graphql
5 replies
RRunPod
Created by Bersaelor on 1/7/2025 in #⛅|pods
How to set ContainerRegistryAuth for `podRentInterruptable`
you mean, creating the template via the web console and then using the templateID in the graphql call? The env variables I send to the instance are dynamic, so I guess I would have to create a new template every time?
5 replies
RRunPod
Created by Bersaelor on 1/6/2025 in #⛅|pods
Fetch available spot pricing for gpu types
ah, ok this seems to work:
query GpuTypes {
gpuTypes {
id
displayName
memoryInGb
communityCloud
communitySpotPrice
}
}
query GpuTypes {
gpuTypes {
id
displayName
memoryInGb
communityCloud
communitySpotPrice
}
}
4 replies
SSolidJS
Created by Bersaelor on 8/6/2024 in #support
importing static assets (telling vinxi/vite about stuff other then png's)
typescript will still complain but in my build it worked
14 replies
SSolidJS
Created by Bersaelor on 8/6/2024 in #support
importing static assets (telling vinxi/vite about stuff other then png's)
try with the above comment on ?raw maybe that works
14 replies
SSolidJS
Created by Bersaelor on 8/15/2024 in #support
Cache-Busting with solid.js
i guess we should also do the same to index.html.br and index.html.gz
19 replies
SSolidJS
Created by Bersaelor on 8/15/2024 in #support
Cache-Busting with solid.js
very true
19 replies
SSolidJS
Created by Bersaelor on 8/15/2024 in #support
Cache-Busting with solid.js
yup, researching it atm. You can tell cloudfront about cache lengths using the same headers as the ones you communicate to the browser
19 replies
SSolidJS
Created by Bersaelor on 8/15/2024 in #support
Cache-Busting with solid.js
mhmm
19 replies
SSolidJS
Created by Bersaelor on 8/15/2024 in #support
Cache-Busting with solid.js
and, again, the edge cached files get invalidated when I run the CI, only the local client needs to not cache the index.html
19 replies
SSolidJS
Created by Bersaelor on 8/15/2024 in #support
Cache-Busting with solid.js
mhhm, but setting no-cache would always make it go to the source s3 bucket, so the index.html wouldn't be cached on the edge anymore, wouldn't it? If I give it 1h max age, and make only deploy to prod during the night, maybe it's better situation for everyone?
aws s3api copy-object --bucket <bucket> --copy-source <bucket>/index.html --key index.html --metadata-directive "COPY" --metadata "Cache-Control=public, no-cache"
aws s3api copy-object --bucket <bucket> --copy-source <bucket>/index.html --key index.html --metadata-directive "COPY" --metadata "Cache-Control=public, no-cache"
19 replies
SSolidJS
Created by Bersaelor on 8/15/2024 in #support
Cache-Busting with solid.js
the issue can't be cloudfront, because on the backend-cf side I invalidate the whole sites cache after every update. so it has to be the browser that cached on the client side
19 replies
SSolidJS
Created by Bersaelor on 8/15/2024 in #support
Cache-Busting with solid.js
mhmm, let's see if I can manually set a cache-control max-age of 1h on just the index.html
19 replies