mirror of
https://github.com/soconnor0919/hristudio.git
synced 2025-12-11 06:34:44 -05:00
- Add plugin store system with dynamic loading of robot actions - Implement plugin store API routes and database schema - Update experiment designer to support plugin-based actions - Refactor environment configuration and sidebar navigation - Improve authentication session handling with additional user details - Update Tailwind CSS configuration and global styles - Remove deprecated files and consolidate project structure
61 lines
1.3 KiB
JavaScript
61 lines
1.3 KiB
JavaScript
import "./src/env.mjs";
|
|
import { createRequire } from 'module';
|
|
const require = createRequire(import.meta.url);
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
// Image configuration
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "**",
|
|
},
|
|
{
|
|
protocol: "http",
|
|
hostname: "localhost",
|
|
port: "3000",
|
|
pathname: "/api/images/**",
|
|
},
|
|
],
|
|
dangerouslyAllowSVG: true,
|
|
contentDispositionType: 'attachment',
|
|
},
|
|
|
|
// Package configuration
|
|
transpilePackages: ["postgres"],
|
|
|
|
// Enable experimental features
|
|
experimental: {
|
|
// Enable modern webpack features
|
|
webpackBuildWorker: true,
|
|
// Turbopack configuration (when using --turbo)
|
|
turbo: {
|
|
resolveAlias: {
|
|
// Handle server-only modules in Turbo
|
|
'server-only': 'server-only',
|
|
},
|
|
},
|
|
},
|
|
|
|
// Webpack fallbacks (only used when not using Turbo)
|
|
webpack: (config, { isServer }) => {
|
|
if (!isServer) {
|
|
config.resolve.fallback = {
|
|
...config.resolve.fallback,
|
|
fs: false,
|
|
net: false,
|
|
tls: false,
|
|
crypto: false,
|
|
os: false,
|
|
path: false,
|
|
stream: false,
|
|
perf_hooks: false,
|
|
child_process: false,
|
|
};
|
|
}
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default config;
|