Skip to content

Using SurrealDB from a server function seems to break compilation #1968

Answered by tqwewe
lukej57 asked this question in Q&A
Discussion options

You must be logged in to vote

You need to add surrealdb as an optional dependency which is only used with the ssr feature flag.

surrealdb = { version = "*", optional = true }

[features]
ssr = [
  "dep:surrealdb"
]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lukej57
Comment options

Answer selected by lukej57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants