That rspack change fixed my public assets also, thanks!
Live prod site at https://www.localmealprep.com/
I’d already replaced the logo/favicon image assets with CDN refs as a temporary fix, but the static robots.txt at the root had still been missing.
Here’s my full config for reference:
import { defineConfig } from '@meteorjs/rspack'
import rspack from '@rspack/core'
import path from 'path'
import { fileURLToPath } from 'url'
const __dirname = path.dirname(fileURLToPath(import.meta.url))
export default defineConfig(() => ({
performance: {
maxAssetSize: 512000,
maxEntrypointSize: 512000,
hints: process.env.NODE_ENV === 'production' ? 'warning' : false,
},
plugins: [
new rspack.CopyRspackPlugin({
patterns: [
{
from: 'public',
to: '.',
noErrorOnMissing: true,
},
],
}),
],
resolve: {
alias: {
'@api': path.resolve(__dirname, 'imports/api'),
'@lib': path.resolve(__dirname, 'imports/lib'),
'@schemas': path.resolve(__dirname, 'imports/schemas'),
'@ui': path.resolve(__dirname, 'imports/ui'),
},
},
}))

