mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 17:05:36 +01:00
opfs for sync in one commit!
This commit is contained in:
22
bindings/javascript/examples/browser/vite.config.js
Normal file
22
bindings/javascript/examples/browser/vite.config.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import { defineConfig, searchForWorkspaceRoot } from 'vite'
|
||||
|
||||
export default defineConfig({
|
||||
server: {
|
||||
fs: {
|
||||
allow: ['.', '../../']
|
||||
},
|
||||
define:
|
||||
{
|
||||
'process.env.NODE_DEBUG_NATIVE': 'false', // string replace at build-time
|
||||
},
|
||||
headers: {
|
||||
'Cross-Origin-Opener-Policy': 'same-origin',
|
||||
'Cross-Origin-Embedder-Policy': 'require-corp',
|
||||
}
|
||||
},
|
||||
optimizeDeps: {
|
||||
esbuildOptions: {
|
||||
define: { 'process.env.NODE_DEBUG_NATIVE': 'false' },
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user