Skip to content

Instantly share code, notes, and snippets.

@justin-schroeder
justin-schroeder / externalRedirect.ts
Created July 12, 2022 19:36
Perform an external redirect in Nuxt 3 router middleware
import { useNuxtApp } from '#app'
import { sendRedirect } from 'h3'
/**
* Performs an external redirect in a Nuxt3 route middleware. Once this Nuxt3
* pull request is merged, this function can be removed in favor of navigateTo:
*
* https://github.com/nuxt/framework/pull/5022
*
* @param url - An external url to redirect to
@tpai
tpai / solution.md
Last active February 24, 2023 06:03
facebook plugin init error: init not called with valid version

Solution

js.src = "//connect.facebook.net/zh_TW/all.js";

instead of

js.src = "//connect.facebook.net/zh_TW/sdk.js";

Causing

@PurpleBooth
PurpleBooth / README-Template.md
Last active March 19, 2026 23:12
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites