Pacharapol Withayasakpunt Pacharapol Withayasakpunt
Mon 25 May 2020

The examples of usage includes,

  • When you want to use MongoDB Atlas beyond free tier limits; or other self-hosted database
  • Self-hosted WordPress
  • Self-hosted stateful docker container, such as Remark42 or Isso.

(I have done all three.)

Actually, it's the answer to this question.

Need help deploy Docker that needs storage on GCP

Need help deploy Docker that needs storage on GCP

For example, https://github.com/umputun/remark42 Internal BoltDB Uses docker-compose.yml h...
Pacharapol Withayasakpunt Pacharapol Withayasakpunt
Wed 20 May 2020

This can easily be done with Slots and Component :is.

<template lang="pug">
#App
  component(v-if="layout" :is="layout")
    router-view
  router-view(v-else)
</template>

<script lang="ts">
import { Vue, Component, Watch } from 'vue-property-decorator'

@Component
export default class App extends Vue {
  get layout () {
    const layout = this.$route.meta.layout
    return layout ? `${layout}-layout` : null
  }
}
</script>

And it fallbacks to Blank Layout.