mirror of
https://github.com/soconnor0919/hristudio.git
synced 2025-12-15 08:34:44 -05:00
feat: Enhance plugin store and experiment design infrastructure
- 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
This commit is contained in:
61
next.config.mjs
Normal file
61
next.config.mjs
Normal file
@@ -0,0 +1,61 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user