Skip to content

Commit

Permalink
config updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nofurtherinformation committed Apr 3, 2024
1 parent 8878065 commit f7fb3de
Show file tree
Hide file tree
Showing 3 changed files with 1,056 additions and 97 deletions.
30 changes: 27 additions & 3 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,37 @@
import withBundleAnalyzer from "@next/bundle-analyzer"
import withPlugins from "next-compose-plugins"
import { env } from "./env.mjs"

import NodePolyFillPlugin from "node-polyfill-webpack-plugin"
import path from "path"
/**
* @type {import('next').NextConfig}
*/
const config = withPlugins([[withBundleAnalyzer({ enabled: env.ANALYZE })]], {
const config = withPlugins([[new NodePolyFillPlugin(), withBundleAnalyzer({ enabled: env.ANALYZE })]], {
reactStrictMode: true,
experimental: { instrumentationHook: true },
// webpack: (config, { isServer }) => {
// if (!isServer) {
// config.resolve.fallback = { fs: false }
// }
// const _config = {
// ...config,
// experiments: {
// ...config.experiments,
// asyncWebAssembly: true,
// },
// resolve: {
// ...config.resolve,
// fallback: {
// ...config.resolve.fallback,
// modules: ['node_modules'],
// util: path.resolve("node_modules/util/")
// }
// }
// }
// return config
// },
experimental: {
instrumentationHook: true,
},
rewrites() {
return [
{ source: "/healthz", destination: "/api/health" },
Expand Down
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,17 @@
"@deck.gl/react": "^8.9.34",
"@dsnp/parquetjs": "^1.5.0",
"@duckdb/duckdb-wasm": "1.28.1-dev106.0",
"@loaders.gl/core": "^3.4.14",
"@loaders.gl/gis": "^4.1.0",
"@loaders.gl/parquet": "^3.4.14",
"@loaders.gl/polyfills": "^3.4.14",
"@loaders.gl/schema": "3.4.14",
"@mdx-js/loader": "^3.0.1",
"@mdx-js/mdx": "^3.0.1",
"@mdx-js/react": "^3.0.1",
"@next/bundle-analyzer": "^14.0.3",
"@next/mdx": "^14.1.3",
"@polkadot/util": "^12.6.2",
"@radix-ui/colors": "^3.0.0",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-checkbox": "^1.0.4",
Expand Down Expand Up @@ -75,6 +80,7 @@
"d3": "^7.8.5",
"d3-scale": "^4.0.2",
"deck.gl": "^8.9.34",
"duckdb": "^0.10.1",
"gray-matter": "^4.0.3",
"http-server": "^14.1.1",
"lodash": "^4.17.21",
Expand All @@ -85,8 +91,9 @@
"next": "^14.0.3",
"next-compose-plugins": "^2.2.1",
"next-mdx-remote": "^4.4.1",
"node-polyfill-webpack-plugin": "^3.0.0",
"papaparse": "^5.4.1",
"parquet-wasm": "0.6.0-beta.2",
"parquet-wasm": "0.5.0",
"pmtiles": "^3.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand All @@ -104,6 +111,7 @@
"tinacms": "^1.6.0",
"tinycolor2": "^1.6.0",
"unified": "^11.0.4",
"util": "^0.12.5",
"web-worker": "^1.3.0",
"xmlhttprequest": "^1.8.0",
"xmlhttprequest-ssl": "^2.1.1",
Expand Down
Loading

0 comments on commit f7fb3de

Please sign in to comment.