Skip to content

Commit

Permalink
Update vite.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristPetitjean committed Apr 13, 2022
1 parent d3684b3 commit 6ccc187
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion header/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ export default defineConfig({
federation({
name: 'header',
filename: 'remoteEntry.js',
remotes: {
'periscolaire-auth': 'http://localhost:5002/assets/remoteEntry.js',
},
exposes: {
'./NavBar': './src/components/NavBar.vue',
'./HeaderLink': './src/components/HeaderLink.vue',
},
shared: ['vue', 'vue-router'],
shared: ['vue', 'vue-router', 'auth'],
}),
],
build: {
Expand Down

0 comments on commit 6ccc187

Please sign in to comment.