refactor backend and persist stock campaign queue
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m32s

This commit is contained in:
Cauê Faleiros
2026-05-27 15:00:23 -03:00
parent 6ba8219596
commit 8c2590c56a
25 changed files with 658 additions and 363 deletions

View File

@@ -3,8 +3,27 @@ import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
export default defineConfig(({ command }) => ({
plugins: [
command === 'serve' && {
name: 'react-refresh-preamble-fix',
transformIndexHtml() {
return [{
tag: 'script',
attrs: { type: 'module' },
children: `
import RefreshRuntime from "/@react-refresh";
RefreshRuntime.injectIntoGlobalHook(window);
window.$RefreshReg$ = () => {};
window.$RefreshSig$ = () => (type) => type;
window.__vite_plugin_react_preamble_installed__ = true;
`
}]
}
},
react(),
tailwindcss()
],
server: {
port: 3001,
proxy: {
@@ -23,4 +42,4 @@ export default defineConfig({
}
}
}
})
}))