Skip to content

Commit

Permalink
fix: git can be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
pooya parsa committed Jun 8, 2020
1 parent 29bbf2d commit 47b3df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const project = <EventFactory<ProjectEvent>> function (context) {
const { options } = context.nuxt
return {
name: 'project',
type: context.git.url ? 'git' : 'local',
type: (context.git && context.git.url) ? 'git' : 'local',
isSSR: options.mode === 'universal' || options.ssr === true,
target: options._generate ? 'static' : 'server',
packageManager: context.packageManager
Expand Down

0 comments on commit 47b3df0

Please sign in to comment.