summaryrefslogtreecommitdiff
path: root/examples/snowpack/src/components/PluginSearchPage.jsx
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@matthewphillips.info> 2021-06-11 09:03:22 -0400
committerGravatar GitHub <noreply@github.com> 2021-06-11 09:03:22 -0400
commit1bab90653976d767ecc96756309a08f9732fecee (patch)
treed92ec7b150ac656f00c719a138d89fdedb246869 /examples/snowpack/src/components/PluginSearchPage.jsx
parentce9336115e8e3b54a534224ebddc6ad9f89c12dc (diff)
downloadastro-1bab90653976d767ecc96756309a08f9732fecee.tar.gz
astro-1bab90653976d767ecc96756309a08f9732fecee.tar.zst
astro-1bab90653976d767ecc96756309a08f9732fecee.zip
Remove second snowpack instance (#368)
* Remove second snowpack instance * Document import.meta.env.SSR * Remove unnecessary Promise.all
Diffstat (limited to 'examples/snowpack/src/components/PluginSearchPage.jsx')
-rw-r--r--examples/snowpack/src/components/PluginSearchPage.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/snowpack/src/components/PluginSearchPage.jsx b/examples/snowpack/src/components/PluginSearchPage.jsx
index 4ed46cb74..4bf9a0f82 100644
--- a/examples/snowpack/src/components/PluginSearchPage.jsx
+++ b/examples/snowpack/src/components/PluginSearchPage.jsx
@@ -117,7 +117,7 @@ function PluginSearchPageLive() {
}
export default function PluginSearchPage(props) {
- return import.meta.env.astro ? (
+ return import.meta.env.SSR ? (
<div>Loading...</div>
) : (
<PluginSearchPageLive {...props} />