1
0
Fork 0
docsearch/examples/js-demo/src/main.ts
Pierre Millot d360855f16
fix: use vite instead of parcel in the examples (#2329)
Parcel would delete some random file like identity because it though it was not used, vite is smarter.
Also remove unused imports
2024-10-31 16:44:34 +01:00

11 lines
239 B
TypeScript

import docsearch from '@docsearch/js';
import './app.css';
import '@docsearch/css/dist/style.css';
docsearch({
container: '#docsearch',
indexName: 'docsearch',
appId: 'R2IYF7ETH7',
apiKey: '599cec31baffa4868cae4e79f180729b',
});