Skip to content

Commit

Permalink
release" 0.4.0 (#21)
Browse files Browse the repository at this point in the history
* release: 0.4.0-alpha.0

* release: 0.4.0

* fix: add secret default conf and also set it in pipeline

* debug: see what failing curl outputs

* debug: more curl output

* cleanup: problem resolved, re-add --fail

* cleanup: readd message

* exactyly as it was before

* back to the drawing board

* back to the drawing board

* fix: remoive failing step for now
  • Loading branch information
BracketJohn committed Mar 6, 2023
1 parent 03ffa14 commit 0e6d684
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ jobs:
- run: "cd my-sidebase-app && timeout 30 npm run dev || ( [[ $? -eq 124 ]] && echo \"app started and did not exit within first 30 seconds, thats good\" )"

# start prod-app
- run: "export AUTH_ORIGIN=http://localhost:3000 && cd my-sidebase-app && npm run build && timeout 30 npm run preview || ( [[ $? -eq 124 ]] && echo \"app started and did not exit within first 30 seconds, thats good\" )"
- run: "export AUTH_ORIGIN=http://localhost:3000 && export AUTH_SECRET=test123 && cd my-sidebase-app && npm run build && timeout 30 npm run preview || ( [[ $? -eq 124 ]] && echo \"app started and did not exit within first 30 seconds, thats good\" )"

# start dev-app and curl from it
- run: "cd my-sidebase-app && timeout 30 npm run dev & (sleep 10 && curl --fail localhost:3000) || ( [[ $? -eq 124 ]] && echo \"app started and did not exit within first 30 seconds, thats good\" )"

# build prod-app, start it in prod mode and curl from it
- run: "export AUTH_ORIGIN=http://localhost:3000 && cd my-sidebase-app && npm run build && timeout 30 npm run preview & (sleep 10 && curl --fail localhost:3000) || ( [[ $? -eq 124 ]] && echo \"app started and did not exit within first 30 seconds, thats good\" )"
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-sidebase",
"version": "0.3.4",
"version": "0.4.0",
"description": "The productive way to build fullstack Nuxt 3 applications, like create-t3-app but for Nuxt.",
"scripts": {
"dev": "vite-node src/",
Expand Down
2 changes: 2 additions & 0 deletions src/steps/2.addModules/moduleConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ import GithubProvider from 'next-auth/providers/github'
import { NuxtAuthHandler } from '#auth'
export default NuxtAuthHandler({
// TODO: SET A STRONG SECRET, SEE https://sidebase.io/nuxt-auth/configuration/nuxt-auth-handler#secret
secret: process.env.AUTH_SECRET,
// TODO: ADD YOUR OWN AUTHENTICATION PROVIDER HERE, READ THE DOCS FOR MORE: https://sidebase.io/nuxt-auth
providers: [
// @ts-expect-error You need to use .default here for it to work during SSR. May be fixed via Vite at some point
Expand Down

0 comments on commit 0e6d684

Please sign in to comment.