Skip to content

Commit 4028bb5

Browse files
fix(router): use memory history to prevent modifying history in
sandboxed/insecure envs
1 parent c941068 commit 4028bb5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/router/src/Exceptions/local/src/entrypoint

packages/router/src/Exceptions/local/src/entrypoint/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import ui from '@nuxt/ui/vue-plugin'
22
import { createApp } from 'vue'
3-
import { createRouter, createWebHistory } from 'vue-router'
3+
import { createMemoryHistory, createRouter } from 'vue-router'
44
import renderer from '../renderer.vue'
55
import { initializeExceptionStore } from '../store'
66
import './style.css'
77

88
const app = createApp(renderer)
99
const router = createRouter({
1010
routes: [],
11-
history: createWebHistory(),
11+
history: createMemoryHistory(),
1212
})
1313

1414
const element = document.getElementById('tempest-hydration')

0 commit comments

Comments
 (0)