-
Notifications
You must be signed in to change notification settings - Fork 0
/
remix.config.js
32 lines (24 loc) · 940 Bytes
/
remix.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// remix.config.js
const path = require('path');
module.exports = {
// Define the server build directory
serverBuildDirectory: path.join(__dirname, 'dist', 'server'),
// Define the assets build directory
assetsBuildDirectory: path.join(__dirname, 'public', 'build'),
// Define the public path for serving assets
publicPath: '/build/',
// Define the server entry file
server: path.join(__dirname, 'src', 'entry.server.tsx'),
// Define the browser entry file
appDirectory: path.join(__dirname, 'src'),
// Define the routes for the Remix application
routes: async (defineRoutes) => {
return defineRoutes((route) => {
// Define routes here
// Example: route('/about', 'about.tsx');
});
},
// Define ignored routes that should not be handled by Remix
ignoredRouteFiles: ['**/.*', '**/*.css', '**/*.test.{js,jsx,ts,tsx}'],
// Additional configurations can be added here if necessary
};