Skip to content

Commit

Permalink
Use level three headings
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Apr 5, 2021
1 parent 341b5cf commit 7d52f37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions documentation/faq/70-integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
question: How do I use X with SvelteKit?
---

## How do I setup library X?
### How do I setup library X?

Please see [sveltejs/integrations](https://github.com/sveltejs/integrations#sveltekit) for examples of using many popular libraries like Tailwind, PostCSS, Firebase, GraphQL, mdsvex, and more.

## How do I setup a database?
### How do I setup a database?

Put the code to query your database in [endpoints](../docs#routing-endpoints) - don't query the database in .svelte files. You can create a `db.js` or similar that sets up a connection immediately and makes the client accessible throughout the app as a singleton. You can execute any one-time setup code in `hooks.js` and import your database helpers into any endpoint that needs them.

## How do I use Axios?
### How do I use Axios?

You probably don't need it. We'd generally recommend you just use `fetch` instead. If you insist, you're probably better off using the ESM drop-in replacement `redaxios` [until axios utilizes ESM](https://github.com/axios/axios/issues/1879). Finally, if you still want to use Axios itself, try putting it in `optimizeDeps.include`.

0 comments on commit 7d52f37

Please sign in to comment.