18 lines
533 B
TypeScript
18 lines
533 B
TypeScript
import type { NextConfig } from 'next'
|
|
|
|
const config: NextConfig = {
|
|
reactStrictMode: true,
|
|
transpilePackages: ['@solana/connector', '@solisting/sdk', '@descro/sdk'],
|
|
webpack(webpackConfig) {
|
|
// Workspace SDK packages use .js extensions on TypeScript imports (ESM convention)
|
|
// but have no compiled output — webpack must resolve .js → .ts
|
|
webpackConfig.resolve.extensionAlias = {
|
|
'.js': ['.ts', '.tsx', '.js'],
|
|
'.mjs': ['.mts', '.mjs'],
|
|
}
|
|
return webpackConfig
|
|
},
|
|
}
|
|
|
|
export default config
|