Although there are many alternatives to deploy a single-page application (SPA), you might find a situation where you need to deploy it in an isolat...
For further actions, you may consider blocking this person and/or reporting abuse
I just started learning Go recently and found this post to contain a lot of useful information. I really feel like I could build a proper standalone web app after reading it. Thanks especially for the mentions of Echo and Fibre! Coming from Node as my primary backend it's nice to see such a familiar interface.
Thanks, glad you find it useful!
In some circumstances, the standalone app is suitable for some cases, but not always.
That's the main point of frameworks, to make our lives easier.
amazing post!
Nice article over here. Do you have an idea on to make go://embed include lazy loaded sveltekit endpoints that start with . e.g _id.indexeadfg.js?
If my SPA has hundreds of these, I cant include them one by one.
Hi thanks,
You can do something like these:
Or explicitly embed specific file type:
That was actually helpful.
Thanks, nice little snippets
i try to follow with echo but i got an error like this, how to solve this?
this is generated static file
Have you try to prefix
all:
for the go embed directive? github.com/aprakasa/go-embed-spa/b...yes, case closed , thx
it would be nice if the article was also revised
from
to
Hello,
In your repo github.com/aprakasa/go-embed-spa,
I got error when adding file +page.server.js in routes/about folder.
+page.server.js
/** @type {import('./$types').PageServerLoad} */
export async function load() {
return {}
}
Here's the error
Can you give me a workaround for this case ?
Thank You.
Which one do you recommend of Go framework : Fiber or Echo ? What about the others like Gin, Iris, etc ?
Fantastic write-up! Thanks for sharing! :)