diff --git a/packages/pages/src/vite-plugin/plugin.ts b/packages/pages/src/vite-plugin/plugin.ts index 5150ee57d..dafc8eafa 100644 --- a/packages/pages/src/vite-plugin/plugin.ts +++ b/packages/pages/src/vite-plugin/plugin.ts @@ -15,7 +15,16 @@ const plugin = (): PluginOption[] => { }; const projectStructure = new ProjectStructure(projectConfigFromBuildArgs); - return [build(projectStructure), nodePolyfills()]; + return [ + build(projectStructure), + nodePolyfills({ + globals: { + Buffer: "build", + global: "build", + process: "build", + }, + }), + ]; }; export default plugin; diff --git a/playground/locations-site/sites-config/features.json b/playground/locations-site/sites-config/features.json index f80e38ca0..02c781471 100644 --- a/playground/locations-site/sites-config/features.json +++ b/playground/locations-site/sites-config/features.json @@ -1,43 +1,4 @@ { - "features": [ - { - "name": "turtlehead-tacos", - "templateType": "JS", - "staticPage": {} - }, - { - "name": "robots", - "templateType": "JS", - "staticPage": {} - }, - { - "name": "location", - "streamId": "location-stream", - "templateType": "JS", - "entityPageSet": {} - } - ], - "streams": [ - { - "$id": "location-stream", - "filter": { - "entityTypes": [ - "location" - ] - }, - "fields": [ - "id", - "uid", - "meta", - "address", - "slug" - ], - "localization": { - "locales": [ - "en" - ], - "primary": false - } - } - ] + "features": [], + "streams": [] } \ No newline at end of file diff --git a/playground/multibrand-site/sites-config/sunglasses.oakley.com/features.json b/playground/multibrand-site/sites-config/sunglasses.oakley.com/features.json index 87177a020..02c781471 100644 --- a/playground/multibrand-site/sites-config/sunglasses.oakley.com/features.json +++ b/playground/multibrand-site/sites-config/sunglasses.oakley.com/features.json @@ -1,41 +1,4 @@ { - "features": [ - { - "name": "sunglasses", - "streamId": "oakley-stream", - "templateType": "JS", - "entityPageSet": {} - }, - { - "name": "turtlehead-tacos", - "templateType": "JS", - "staticPage": {} - }, - { - "name": "robots", - "templateType": "JS", - "staticPage": {} - } - ], - "streams": [ - { - "$id": "oakley-stream", - "fields": [ - "id", - "name", - "slug" - ], - "filter": { - "savedFilterIds": [ - "1241548641" - ] - }, - "localization": { - "locales": [ - "en" - ], - "primary": false - } - } - ] + "features": [], + "streams": [] } \ No newline at end of file