diff --git a/docs/src/pages/[platform]/getting-started/troubleshooting/shared/vite-polyfill.mdx b/docs/src/pages/[platform]/getting-started/troubleshooting/shared/vite-polyfill.mdx index 1e93af4469b..67c123c7db7 100644 --- a/docs/src/pages/[platform]/getting-started/troubleshooting/shared/vite-polyfill.mdx +++ b/docs/src/pages/[platform]/getting-started/troubleshooting/shared/vite-polyfill.mdx @@ -1,3 +1,5 @@ +import { InlineFilter } from '@/components/InlineFilter'; + **1.** Add the following script tag to the `index.html` file right before the `` tag. This will only run on the client side and will polyfill Node globals. ```html @@ -13,6 +15,7 @@ **2.** Update the `vite.config.ts` (or `vite.config.js`) and add a resolve alias inside the `defineConfig({})` as seen below. + ```ts export default defineConfig({ plugins: [react()], @@ -26,3 +29,20 @@ export default defineConfig({ } }) ``` + + + +```ts +export default defineConfig({ + plugins: [vue()], + resolve: { + alias: [ + { + find: './runtimeConfig', + replacement: './runtimeConfig.browser', // ensures browser compatible version of AWS JS SDK is used + }, + ] + } +}) +``` + \ No newline at end of file