Skip to content

Commit c153dda

Browse files
committed
Add hints of supabase in test components
1 parent 06d01de commit c153dda

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

examples/vue2-demo/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
- Run `yarn install` to pull all the required dependencies
66
- Create a `.env` file on the root of this project i.e. `../vue3-vite-demo/.env`
7-
- Add the variable `VITE_SUPABSE_URL` and set its value
8-
- Add the variable `VITE_SUPABASE_KEY` and set its value
9-
- Run `yarn dev`
7+
- Add the variable `VUE_APP_SUPABSE_URL` and set its value
8+
- Add the variable `VUE_APP_SUPABASE_KEY` and set its value
9+
- Run `yarn serve`
1010

11-
## How `yarn dev` works
11+
## How `yarn serve` works
1212

1313
The scripts starts by looking for and removing any tarballs on the root directory of this project. The next step, the root project _vue-supabase_ is packed into a tarball, the version is then removed from the name. The script then uses that tarball to install _vue-supabase_ as a dependency.

examples/vue2-demo/src/App.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<template>
22
<div id="app">
3-
<img alt="Vue logo" src="./assets/logo.png">
4-
<HelloWorld msg="Welcome to Your Vue.js + TypeScript App"/>
3+
<img alt="Vue logo" src="./assets/logo.png" />
4+
<HelloWorld msg="Welcome to Your Vue.js + TypeScript + Supabase App" />
55
</div>
66
</template>
77

88
<script lang="ts">
9-
import { Component, Vue } from 'vue-property-decorator';
10-
import HelloWorld from './components/HelloWorld.vue';
9+
import { Component, Vue } from "vue-property-decorator";
10+
import HelloWorld from "./components/HelloWorld.vue";
1111
1212
@Component({
1313
components: {

examples/vue3-vite-demo/src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script setup>
22
// This starter template is using Vue 3 <script setup> SFCs
33
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
4-
import HelloWorld from './components/HelloWorld.vue'
4+
import HelloWorld from "./components/HelloWorld.vue";
55
</script>
66

77
<template>
88
<img alt="Vue logo" src="./assets/logo.png" />
9-
<HelloWorld msg="Hello Vue 3 + Vite" />
9+
<HelloWorld msg="Hello Vue 3 + Vite + Supabase" />
1010
</template>
1111

1212
<style>

0 commit comments

Comments
 (0)