How to cross compile in SPA mode


I’m trying to cross compiling my application. The binary works, but it can’t find the public folder specified in StaticConfig, giving me a 404.

I’ve tried using both, absolute and relative paths.

Root: filepath.Abs("./public") // absolute
Root: "./public" // relative

Any workaround? Thanks.


Your absolute path is not absolute, try giving the full path manually.