Initial frontend repository commit.
Include app source and update .gitignore to exclude local release artifacts and signing files. Made-with: Cursor
This commit is contained in:
21
metro.config.js
Normal file
21
metro.config.js
Normal file
@@ -0,0 +1,21 @@
|
||||
/** @type {import('expo/metro-config').MetroConfig} */
|
||||
const { getDefaultConfig } = require('expo/metro-config');
|
||||
|
||||
const config = getDefaultConfig(__dirname);
|
||||
|
||||
// Add wasm asset support
|
||||
config.resolver.assetExts.push('wasm');
|
||||
|
||||
// NOTE: enhanceMiddleware is marked as deprecated in Metro's types,
|
||||
// but there's currently no official alternative for custom dev server headers.
|
||||
// For production, configure COEP/COOP headers on your hosting platform.
|
||||
// These headers are required for SharedArrayBuffer (used by expo-sqlite on web).
|
||||
config.server.enhanceMiddleware = (middleware) => {
|
||||
return (req, res, next) => {
|
||||
res.setHeader('Cross-Origin-Embedder-Policy', 'credentialless');
|
||||
res.setHeader('Cross-Origin-Opener-Policy', 'same-origin');
|
||||
middleware(req, res, next);
|
||||
};
|
||||
};
|
||||
|
||||
module.exports = config;
|
||||
Reference in New Issue
Block a user