forked from a16z-infra/ai-town
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
48 lines (43 loc) · 1.08 KB
/
next.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/** @type {import('next').NextConfig} */
const path = require('path');
const nextConfig = {
experimental: {
serverActions: true,
},
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
// Adjust the path to match the location of your "AI-town" project
const aiTownModulePath = path.join(__dirname, 'AI-town/node_modules');
// Configure webpack to resolve modules from the "AI-town" module path
config.resolve.modules.push(aiTownModulePath);
return config;
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'avatars.githubusercontent.com',
port: '',
pathname: '**',
},
{
protocol: 'https',
hostname: 'tjzk.replicate.delivery',
port: '',
pathname: '**',
},
{
protocol: 'https',
hostname: 'replicate.delivery',
port: '',
pathname: '**',
},
{
protocol: 'https',
hostname: 'a16z.com',
port: '',
pathname: '**',
},
],
},
};
module.exports = nextConfig;