Skip to content

Commit 4abcfad

Browse files
authored
Merge pull request #248 from performant-software/develop
Develop into master
2 parents 952afad + b1129ca commit 4abcfad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+11430
-2296
lines changed

README.md

Lines changed: 64 additions & 60 deletions
Large diffs are not rendered by default.

astro.config.mjs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import mdx from '@astrojs/mdx';
22
import netlify from '@astrojs/netlify';
33
import react from '@astrojs/react';
44
import sitemap from '@astrojs/sitemap';
5-
import { defineConfig } from 'astro/config';
65
import tailwindcss from '@tailwindcss/vite';
6+
import { defineConfig, envField } from 'astro/config';
7+
import auth from 'auth-astro';
78
import { loadEnv } from 'vite';
89
import config from './public/config.json';
910

10-
import auth from 'auth-astro';
11-
1211
const { locales, default_locale: defaultLocale } = config.i18n;
1312
const { STATIC_BUILD } = loadEnv(process.env.STATIC_BUILD, process.cwd(), '');
1413

@@ -47,5 +46,21 @@ export default defineConfig({
4746
'jsnext'
4847
]
4948
}
49+
},
50+
env: {
51+
schema: {
52+
STATIC_BUILD: envField.boolean({
53+
access: 'public',
54+
context: 'client',
55+
default: false,
56+
optional: true
57+
}),
58+
USE_CONTENT_CACHE: envField.boolean({
59+
access: 'public',
60+
context: 'client',
61+
default: false,
62+
optional: true
63+
})
64+
}
5065
}
5166
});

docs/configuration-schema.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,30 @@ String
314314

315315
Required: No
316316

317+
#### tags
318+
319+
Array of attributes to display at the top of the search result card in the list view.
320+
321+
Required: No
322+
323+
##### name
324+
325+
The property on the Typesense document to display. This property will also accept a path to drill down into nested objects (e.g. `9a006156-3564-4cb1-bedb-6600c0419226.0.name`).
326+
327+
Required: Yes
328+
329+
##### primary
330+
331+
Whether to use the primary branding color for the tag background
332+
333+
Required: No
334+
335+
##### secondary
336+
337+
Whether to use the secondary branding color for the tag background
338+
339+
Required: No
340+
317341
### route
318342

319343
The path prefix for which to navigate which clicking on a search result. For example, a value of "/places" will navigate to "/places/:uuid" when click on a search result.

0 commit comments

Comments
 (0)