Skip to content

Commit

Permalink
Change key to "s"
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Aug 7, 2024
1 parent f818a0d commit 3795a25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/astro/src/core/dev/restart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,16 @@ export async function createContainerWithAutomaticRestart({
restart.container.viteServer.bindCLIShortcuts({
customShortcuts: [
{
key: 'r',
description: 'reload content layer',
key: 's',
description: 'sync content layer',
action: () => {
if (globalContentLayer.initialized()) {
globalContentLayer.get().sync();
}
},
},
// Disable default Vite shortcuts that don't work well with Astro
{ key: 'r', description: '' },
{ key: 'u', description: '' },
{ key: 'c', description: '' },
],
Expand Down

0 comments on commit 3795a25

Please sign in to comment.