Skip to content

Commit

Permalink
[cli] update docs links (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
stopachka authored Dec 19, 2024
1 parent d3a180e commit 6555d49
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions client/packages/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1733,13 +1733,13 @@ function generateSchemaTypescriptFile(
const entitiesComment =
inferredAttrs.length > 0
? `// We inferred ${inferredAttrs.length} ${easyPlural("attribute", inferredAttrs.length)}!
// Take a look at this schema, and if everything looks good,
// Take a look at this schema, and if everything looks good,
// run \`push schema\` again to enforce the types.`
: hasOnlyUserTable
? `
// This section lets you define entities: think \`posts\`, \`comments\`, etc
// Take a look at the docs to learn more:
// https://www.instantdb.com/docs/schema#defining-entities
// https://www.instantdb.com/docs/modeling-data#2-attributes
`.trim()
: "";

Expand Down Expand Up @@ -1773,7 +1773,7 @@ function generateSchemaTypescriptFile(
// You can define links here.
// For example, if \`posts\` should have many \`comments\`.
// More in the docs:
// https://www.instantdb.com/docs/schema#defining-links
// https://www.instantdb.com/docs/modeling-data#3-links
`.trim()
: "";

Expand All @@ -1784,7 +1784,7 @@ function generateSchemaTypescriptFile(
Object.keys(rooms).length === 0
? `
// If you use presence, you can define a room schema here
// https://www.instantdb.com/docs/schema#defining-rooms
// https://www.instantdb.com/docs/presence-and-topics#typesafety
`.trim()
: "";

Expand All @@ -1798,8 +1798,6 @@ function generateSchemaTypescriptFile(
};

return `
// Docs: https://www.instantdb.com/docs/schema
import { i } from "${instantModuleName ?? "@instantdb/core"}";
const _schema = i.schema({
Expand Down

0 comments on commit 6555d49

Please sign in to comment.