Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed autoload snippets for mac #508

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fake-snippets-api/lib/db/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const seed = (db: DbClient) => {
github_username: "seveibar",
})

if (process.env.AUTOLOAD_SNIPPETS === "true") {
if (process.env.NODE_ENV === "development") {
loadAutoloadSnippets(db)
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"playwright": "bunx playwright test",
"playwright:update": "bunx playwright test --update-snapshots",
"start:playwright-server": "bun run build:fake-api && vite --port 5177",
"dev": "AUTOLOAD_SNIPPETS=true bun run build:fake-api && vite",
"dev": "bun run build:fake-api && vite",
"dev:registry": "SNIPPETS_API_URL=http://localhost:3100 vite",
"build": "bun run build:fake-api && tsc -b && vite build",
"preview": "vite preview",
Expand Down
Loading