Jason.json
Post CSS with Solid Start
I have one question. Does someone know to include Post-CSS in Solid-Start project?
I use SCSS and I would like to make the bundles smaller by analyzing the .tsx files.
My files use scss like so.
I use
.tsx.scss
to group them in my IDE.
And then I just import them into the .tsx
file.
11 replies
Changing baseURL based on production and window.location.href
I have an API calling function that builds URLs like this: ${baseUrl()}/api/[...].
The baseUrl function looks like this:
However, when testing the production build, it uses
prodServer
, which is my domain, but the API calls fail because the connection is refused from localhost.
I tried checking window.location.href to see if it includes devServer
or prodServer
, but this doesn’t work as expected. Many API calls are created in server-side code where window is undefined.
Is there a better way to determine the URL context in such cases?6 replies
Solid Start offline indicator in mobile / desktop app
Hi I am looking to include
<OfflineIndicator/>
in my app when the user goes offline in mobile / desktop app. Is there any way I can include it on all of my routes or I have to include it myself all of them?3 replies
How to include Gzip compression to Solid Start project?
Hi, I was using google lighthouse to check the page performance and it suggests to me that I should use gzip compression for json api response.
Is there any easy way to include it to my app?
20 replies
Server Side Fetching
Hi I want to fetch data from server side and render the title based on it's content like in PHP.
I want to execute the fetch request to api from server side because I want to render the page to client when fetch is ready.
Do someone could provide an example script?
62 replies
ServerSide fetching for metatags
Hi I am looking for server side fetching for open graph metatags. I want to execute fetch on server side and then render page with title and metatags filled in. If returned result from fetch has length of 0 redirect user to
/404
page.
My meta tags setup
It works but does show nothing when the link is sent.
Source code of MetaPageProvider
30 replies
Google AdSense with SolidStart
Hi I want to include google adsense in my solid start website.
I think I've done everything what I had to do.
My problem is that ads does not display on my page. There are just empty spaces for them to load. 😦
I just hit my adulthood and tring to get extra money.
If someone is more experienced with google adsense I would love to ask him for little help.
1 replies
Project Structure and Build Output Configuration
Hi there,
I need assistance with configuring my project to build the output folder one directory above the current level. This setup is necessary due to hosting requirements. Specifically, my hosting provider mandates that the main JavaScript file
(app.js)
and package.json
be located in the same directory, with the type field in package.json
set to commonjs
.
Here’s the structure I aim to achieve:
I want to maintain a package.json with type: "module" for building my project and then eject it one folder above. I am using pnpm for package management.
My current app configuration looks like this:
Could you please help me adjust the configuration to achieve this setup?5 replies