Skip to content

Commit

Permalink
chore: replace stackblitz in Readme (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuroUhlar authored Oct 17, 2024
1 parent 4a716f9 commit 210f94c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ You can learn more about these use cases on our [website](https://fingerprint.co
1. `yarn install`
2. `yarn dev`

Alternatively, you can use [Stackblitz](https://stackblitz.com/edit/nextjs-dmv5c7) to run the project in your Chromium-based browser.
Alternatively, you can use [CodeSandbox](https://codesandbox.io/p/devbox/github/fingerprintjs/fingerprintjs-pro-use-cases/) to run the project in your browser.

## Use cases

Expand Down
4 changes: 2 additions & 2 deletions src/server/checks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function areVisitorIdAndRequestIdValid(visitorId: string, requestId: stri
}

export function visitIpMatchesRequestIp(visitIp = '', request: Request) {
// This check is skipped on purpose in the Stackblitz and localhost environments.
// This check is skipped on purpose in localhost environments.
if (IS_DEVELOPMENT) {
return true;
}
Expand All @@ -59,7 +59,7 @@ export function visitIpMatchesRequestIp(visitIp = '', request: Request) {
}

export function originIsAllowed(url = '', request: Request) {
// This check is skipped on purpose in the Stackblitz and localhost environments.
// This check is skipped on purpose in localhost environments.
if (IS_DEVELOPMENT) {
return true;
}
Expand Down
3 changes: 1 addition & 2 deletions src/server/sequelize.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Sequelize } from 'sequelize';
// Provision the database.
// In the Stackblitz environment, this db is stored locally in your browser.
// Provision the local database.
// On the deployed demo, db is cleaned after each deployment.
export const sequelize = new Sequelize('database', '', '', {
dialect: 'sqlite',
Expand Down

0 comments on commit 210f94c

Please sign in to comment.